2020-08-12 20:38:24 -04:00
|
|
|
const Knex = require("knex");
|
2020-05-24 18:33:10 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {Knex} knex
|
|
|
|
*/
|
|
|
|
exports.up = async function(knex) {
|
2020-08-12 20:38:24 -04:00
|
|
|
await knex.schema.table("thread_messages", table => {
|
|
|
|
table.integer("message_number").unsigned().nullable();
|
2020-05-24 18:33:10 -04:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {Knex} knex
|
|
|
|
*/
|
|
|
|
exports.down = async function(knex) {
|
2020-08-12 20:38:24 -04:00
|
|
|
await knex.schema.table("thread_messages", table => {
|
|
|
|
table.dropColumn("message_number");
|
2020-05-24 18:33:10 -04:00
|
|
|
});
|
|
|
|
};
|