ramirez/db/migrations/20190609161116_create_updat...

15 lines
416 B
JavaScript
Raw Normal View History

2019-06-09 10:31:17 -04:00
exports.up = async function(knex, Promise) {
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) {
if (await knex.schema.hasTable("updates")) {
await knex.schema.dropTable("updates");
2019-06-09 10:31:17 -04:00
}
};