Closed bwestergard closed 8 years ago
I suppose you must return promise from up and down functions
'use strict';
exports.up = function(knex, Promise) {
return knex.schema.createTable('inventoryAccounts', function (table) {
table.increments();
table.text('name');
table.text('slug');
table.boolean('allowNegativeBalance');
});
};
exports.down = function(knex, Promise) {
return knex.schema.dropTable('inventoryAccounts');
};
@plasticut is right. It returns a promise, which must be returned.
Running the following migration creates the
sails_migrations
table, adds a row to it, but does not create theinventoryAccounts
table. Perhaps I'm missing something obvious...