Files: ed26f7c5c655a65d700ecac4cddac76d22aad40a / migrations / 20160108004846_create_todos.js
291 bytesRaw
1 | exports.up = function(knex, Promise) { |
2 | return knex.schema.createTableIfNotExists('todos', function(table) { |
3 | table.increments('id') |
4 | table.string('text') |
5 | table.boolean('complete') |
6 | }) |
7 | } |
8 | |
9 | exports.down = function(knex, Promise) { |
10 | return knex.schema.dropTableIfExists('todos') |
11 | } |
12 |
Built with git-ssb-web