Created
February 8, 2017 19:58
-
-
Save pebblexe/5511523ee04b0c8609a97083da1676f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.up = function (knex, Promise) { | |
console.log('creating texts table') | |
return knex.schema.createTableIfNotExists('texts', function (table) { | |
table.increments('id') | |
table.string('To') | |
table.string('From') | |
table.string('Text') | |
table.datetime('Date') | |
}) | |
} | |
exports.down = function (knex, Promise) { | |
console.log('dropping texts') | |
return knex.schema.dropTableIfExists('texts').then(function () { | |
console.log('texts table was dropped') | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment