2020-05-02 19:06:34 +00:00
|
|
|
exports.up = (knex) => {
|
|
|
|
return knex.schema.createTable('possible_date', (table) => {
|
|
|
|
table.increments('id').primary();
|
2020-05-04 17:00:20 +00:00
|
|
|
table.uuid('meeting_id').unsigned().notNullable();
|
2020-05-02 19:06:34 +00:00
|
|
|
table
|
2020-05-04 17:00:20 +00:00
|
|
|
.foreign('meeting_id')
|
2020-05-02 19:06:34 +00:00
|
|
|
.references('meeting.id')
|
|
|
|
.onDelete('cascade');
|
|
|
|
table.date('possible_date').notNullable();
|
|
|
|
table.timestamps(true, true);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = (knex) => {
|
|
|
|
return knex.schema.dropTable('possible_date');
|
|
|
|
};
|