Files: 33c8c3ea806c7b24197e47850836a31c48daefd6 / 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