2019-06-09 10:31:17 -04:00
|
|
|
exports.up = async function(knex, Promise) {
|
2020-08-12 20:38:24 -04:00
|
|
|
if (! await knex.schema.hasTable("updates")) {
|
|
|
|
await knex.schema.createTable("updates", table => {
|
|
|
|
table.string("available_version", 16).nullable();
|
|
|
|
table.dateTime("last_checked").nullable();
|
2019-06-09 10:31:17 -04:00
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = async function(knex, Promise) {
|
2020-08-12 20:38:24 -04:00
|
|
|
if (await knex.schema.hasTable("updates")) {
|
|
|
|
await knex.schema.dropTable("updates");
|
2019-06-09 10:31:17 -04:00
|
|
|
}
|
|
|
|
};
|