knex/test/integration/migrate/memory-migrations.js
Jake Ginnivan bf1e384ed6 Introduced abstraction for getting migrations (#2775)
* Introduced abstraction for getting migrations

This would allow a webpack migration source which is compatible with bundling.

* Fixed migration validation with custom migration source

* Fixed issues after rebasing on muti directory PR

* Renamed parameter and fixed error message

* Addressed some PR comments

* Finished comment

* Moved filename extension filtering into fs-migrator

* Added test showing in memory custom migration source

* Cleaned up how to get config

* Fixed failing test

* Hopefully fix tests

* Fix Node.js 10 support in tests
2018-09-12 14:58:37 +03:00

14 lines
303 B
JavaScript

module.exports = {
migration_source_test_1: {
up(knex) {
return knex.schema.createTable('migration_source_test_1', function(t) {
t.increments();
t.string('name');
});
},
down(knex) {
return knex.schema.dropTable('migration_source_test_1');
},
},
};