mirror of
https://github.com/knex/knex.git
synced 2025-07-29 03:40:16 +00:00

* 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
14 lines
303 B
JavaScript
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');
|
|
},
|
|
},
|
|
};
|