2018-03-11 15:32:14 -04:00
|
|
|
exports.up = async function (knex, Promise) {
|
2020-08-12 20:38:24 -04:00
|
|
|
await knex.schema.table("threads", table => {
|
|
|
|
table.dateTime("scheduled_close_at").index().nullable().defaultTo(null).after("channel_id");
|
|
|
|
table.string("scheduled_close_id", 20).nullable().defaultTo(null).after("channel_id");
|
|
|
|
table.string("scheduled_close_name", 128).nullable().defaultTo(null).after("channel_id");
|
2018-03-11 15:32:14 -04:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = async function(knex, Promise) {
|
2020-08-12 20:38:24 -04:00
|
|
|
await knex.schema.table("threads", table => {
|
|
|
|
table.dropColumn("scheduled_close_at");
|
|
|
|
table.dropColumn("scheduled_close_id");
|
|
|
|
table.dropColumn("scheduled_close_name");
|
2018-03-11 15:32:14 -04:00
|
|
|
});
|
|
|
|
};
|