ramirez/db/migrations/20180224235946_add_close_at...

16 lines
624 B
JavaScript
Raw Normal View History

exports.up = async function (knex, Promise) {
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");
});
};
exports.down = async function(knex, Promise) {
await knex.schema.table("threads", table => {
table.dropColumn("scheduled_close_at");
table.dropColumn("scheduled_close_id");
table.dropColumn("scheduled_close_name");
});
};