24 lines
530 B
JavaScript
24 lines
530 B
JavaScript
|
/* eslint-disable jsdoc/valid-types */
|
||
|
// eslint doesn't seem to understand, but vscode does.
|
||
|
'use strict';
|
||
|
|
||
|
/**
|
||
|
* @param { import("knex").Knex } knex
|
||
|
* @returns { Promise<void> }
|
||
|
*/
|
||
|
exports.up = function(knex) {
|
||
|
return knex.schema.alterTable("inbox", (table) => {
|
||
|
table.string("expires");
|
||
|
});
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* @param { import("knex").Knex } knex
|
||
|
* @returns { Promise<void> }
|
||
|
*/
|
||
|
exports.down = function(knex) {
|
||
|
return knex.schema.alterTable("inbox", (table) => {
|
||
|
table.dropColumn("expires");
|
||
|
});
|
||
|
};
|