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.
15 lines
319 B
15 lines
319 B
10 months ago
|
|
||
|
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");
|
||
|
};
|