2018-08-24 11:39:20 +02:00
|
|
|
'use strict';
|
|
|
|
|
2020-04-19 00:40:23 +02:00
|
|
|
exports.up = function (knex) {
|
2018-08-24 11:39:20 +02:00
|
|
|
return knex.schema
|
2020-04-19 00:40:23 +02:00
|
|
|
.createTable('migration_test_4', function (t) {
|
2018-08-24 11:39:20 +02:00
|
|
|
t.increments();
|
|
|
|
t.string('name');
|
|
|
|
})
|
|
|
|
.then(() =>
|
2020-04-19 00:40:23 +02:00
|
|
|
knex.schema.createTable('migration_test_4_1', function (t) {
|
2018-08-24 11:39:20 +02:00
|
|
|
t.increments();
|
|
|
|
t.string('name');
|
|
|
|
})
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2020-04-19 00:40:23 +02:00
|
|
|
exports.down = function (knex) {
|
2018-08-24 11:39:20 +02:00
|
|
|
return knex.schema
|
|
|
|
.dropTable('migration_test_4')
|
|
|
|
.then(() => knex.schema.dropTable('migration_test_4_1'));
|
|
|
|
};
|