ramirez/db/migrations/20180920224224_remove_is_an...

12 lines
308 B
JavaScript
Raw Permalink Normal View History

exports.up = async function (knex, Promise) {
await knex.schema.table('snippets', table => {
table.dropColumn('is_anonymous');
});
};
exports.down = async function(knex, Promise) {
await knex.schema.table('snippets', table => {
table.integer('is_anonymous').unsigned().notNullable();
});
};