12 lines
289 B
JavaScript
12 lines
289 B
JavaScript
|
exports.up = async function(knex) {
|
||
|
await knex.schema.table("threads", table => {
|
||
|
table.integer("next_message_number").defaultTo(1);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = async function(knex) {
|
||
|
await knex.schema.table("threads", table => {
|
||
|
table.dropColumn("next_message_number");
|
||
|
});
|
||
|
};
|