Logo
Explore Help
Register Sign In
yujunjun/knex
1
0
Fork 0
You've already forked knex
mirror of https://github.com/knex/knex.git synced 2025-07-16 05:20:59 +00:00
Code Issues Packages Projects Releases Wiki Activity
knex/test/integration/migrate/memory-migrations.js

14 lines
303 B
JavaScript
Raw Normal View History

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 19:58:37 +08:00
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');
},
},
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 126ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API