Update migrations with latest db structure changes
This commit is contained in:
parent
8afa93c708
commit
ca1b0fe883
@ -5,8 +5,8 @@ exports.up = (knex) => {
|
|||||||
table.string('email').notNullable().unique();
|
table.string('email').notNullable().unique();
|
||||||
table.string('password').notNullable();
|
table.string('password').notNullable();
|
||||||
table.string('timezone');
|
table.string('timezone');
|
||||||
table.time('earliest_time');
|
table.string('earliest_time');
|
||||||
table.time('latest_time');
|
table.string('latest_string');
|
||||||
table.timestamps(true, true);
|
table.timestamps(true, true);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,6 @@ exports.up = (knex) => {
|
|||||||
table.string('title').notNullable();
|
table.string('title').notNullable();
|
||||||
table.string('description');
|
table.string('description');
|
||||||
table.time('start_time');
|
table.time('start_time');
|
||||||
table.string('timezone').notNullable();
|
|
||||||
table.integer('duration').notNullable();
|
table.integer('duration').notNullable();
|
||||||
table.boolean('status').notNullable();
|
table.boolean('status').notNullable();
|
||||||
table.string('password');
|
table.string('password');
|
||||||
|
@ -11,13 +11,10 @@ exports.up = (knex) => {
|
|||||||
.references('account.id')
|
.references('account.id')
|
||||||
.onDelete('cascade');
|
.onDelete('cascade');
|
||||||
table.primary(['meeting_id', 'account_id']);
|
table.primary(['meeting_id', 'account_id']);
|
||||||
table.time('earliest_time');
|
|
||||||
table.time('latest_time');
|
|
||||||
table.boolean('quorum');
|
table.boolean('quorum');
|
||||||
table.boolean('mandatory');
|
table.boolean('mandatory');
|
||||||
table.boolean('host');
|
table.boolean('host').notNullable();
|
||||||
table.boolean('answered');
|
table.boolean('answered').notNullable();
|
||||||
table.string('timezone').notNullable();
|
|
||||||
table.timestamps(true, true);
|
table.timestamps(true, true);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -18,8 +18,7 @@ exports.up = (knex) => {
|
|||||||
.onDelete('cascade');
|
.onDelete('cascade');
|
||||||
table.boolean('preference').notNullable();
|
table.boolean('preference').notNullable();
|
||||||
table.time('start_time').notNullable();
|
table.time('start_time').notNullable();
|
||||||
table.time('end_time').notNullable();
|
table.time('end_string').notNullable();
|
||||||
table.string('timezone').notNullable();
|
|
||||||
table.timestamps(true, true);
|
table.timestamps(true, true);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user