An even more educational version of the Bandolier for Learn JS the Hard Way. https://learnjsthehardway.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
bandolier2/migrations/20240209023631_init.cjs

14 lines
319 B

exports.up = async (knex) => {
await knex.raw('PRAGMA journal_mode=WAL;');
await knex.schema.createTable('todo', (table) => {
table.timestamps(true, true);
table.increments('id');
table.string("task").notNullable();
});
};
exports.down = async (knex) => {
await knex.schema.dropTable("todo");
};