22 lines
459 B
JavaScript
22 lines
459 B
JavaScript
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.up = function(knex) {
|
|
return knex.schema.alterTable('mailbox', function (table) {
|
|
table.bigInteger('id');
|
|
|
|
table.index('id');
|
|
});
|
|
};
|
|
|
|
/**
|
|
* @param { import("knex").Knex } knex
|
|
* @returns { Promise<void> }
|
|
*/
|
|
exports.down = function(knex) {
|
|
return knex.schema.alterTable('mailbox', function (table) {
|
|
table.dropColumn('id');
|
|
});
|
|
};
|