knex/test/integration/migrate/test2/20131019235306_migration_4.js
Igor Savin 91f23bc02f Feature/2690: Multiple migration directories (#2735)
* Implement support for multiple migration directories

* Add tests for new functionality

* Fix tape tests

* Pass migration directory upwards

* Fix multiple directory support

* Fix bugs

* Rollback correctly

* Fix remaining tests

* Address comments
2018-08-24 12:39:20 +03:00

22 lines
475 B
JavaScript

'use strict';
exports.up = function(knex) {
return knex.schema
.createTable('migration_test_4', function(t) {
t.increments();
t.string('name');
})
.then(() =>
knex.schema.createTable('migration_test_4_1', function(t) {
t.increments();
t.string('name');
})
);
};
exports.down = function(knex) {
return knex.schema
.dropTable('migration_test_4')
.then(() => knex.schema.dropTable('migration_test_4_1'));
};