mirror of
https://github.com/knex/knex.git
synced 2025-11-23 21:45:38 +00:00
21 lines
512 B
JavaScript
21 lines
512 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
|
||
|
|
exports.up = function(knex, promise) {
|
||
|
|
return promise.all([
|
||
|
|
knex.schema
|
||
|
|
.createTable('migration_test_2', function(t) {
|
||
|
|
t.increments();
|
||
|
|
t.string('name');
|
||
|
|
}),
|
||
|
|
knex.schema
|
||
|
|
.createTable('migration_test_2_1', function(t) {
|
||
|
|
t.increments();
|
||
|
|
t.string('name');
|
||
|
|
})
|
||
|
|
]);
|
||
|
|
};
|
||
|
|
|
||
|
|
exports.down = function(knex, promise) {
|
||
|
|
return promise.all([knex.schema.dropTable('migration_test_2'), knex.schema.dropTable('migration_test_2_1')]);
|
||
|
|
};
|