diff --git a/data/migrations/20200502184450_account.js b/data/migrations/20200502184450_account.js index 73582a3..ccad5b5 100644 --- a/data/migrations/20200502184450_account.js +++ b/data/migrations/20200502184450_account.js @@ -5,8 +5,8 @@ exports.up = (knex) => { table.string('email').notNullable().unique(); table.string('password').notNullable(); table.string('timezone'); - table.time('earliest_time'); - table.time('latest_time'); + table.string('earliest_time'); + table.string('latest_string'); table.timestamps(true, true); }); }; diff --git a/data/migrations/20200502193249_meeting.js b/data/migrations/20200502193249_meeting.js index 88ea0fd..6608ace 100644 --- a/data/migrations/20200502193249_meeting.js +++ b/data/migrations/20200502193249_meeting.js @@ -4,7 +4,6 @@ exports.up = (knex) => { table.string('title').notNullable(); table.string('description'); table.time('start_time'); - table.string('timezone').notNullable(); table.integer('duration').notNullable(); table.boolean('status').notNullable(); table.string('password'); diff --git a/data/migrations/20200502193341_participant.js b/data/migrations/20200502193341_participant.js index 93a861e..5aaa81a 100644 --- a/data/migrations/20200502193341_participant.js +++ b/data/migrations/20200502193341_participant.js @@ -11,13 +11,10 @@ exports.up = (knex) => { .references('account.id') .onDelete('cascade'); table.primary(['meeting_id', 'account_id']); - table.time('earliest_time'); - table.time('latest_time'); table.boolean('quorum'); table.boolean('mandatory'); - table.boolean('host'); - table.boolean('answered'); - table.string('timezone').notNullable(); + table.boolean('host').notNullable(); + table.boolean('answered').notNullable(); table.timestamps(true, true); }); }; diff --git a/data/migrations/20200502193443_availability.js b/data/migrations/20200502193443_availability.js index b0c6a0a..f0feccc 100644 --- a/data/migrations/20200502193443_availability.js +++ b/data/migrations/20200502193443_availability.js @@ -18,8 +18,7 @@ exports.up = (knex) => { .onDelete('cascade'); table.boolean('preference').notNullable(); table.time('start_time').notNullable(); - table.time('end_time').notNullable(); - table.string('timezone').notNullable(); + table.time('end_string').notNullable(); table.timestamps(true, true); }); };