Files: 4092d2ca273e72808a14f982863242d355b5bb2b / 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