Update migrations with latest db structure changes

This commit is contained in:
rui hildt 2020-08-26 13:20:54 +02:00
parent 8afa93c708
commit ca1b0fe883
4 changed files with 5 additions and 10 deletions

View File

@ -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);
});
};

View File

@ -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');

View File

@ -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);
});
};

View File

@ -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);
});
};