Ghost/core/server/data/migration
Hannah Wolfe 2cfee3812f Split migrations/index.js & add tests
refs #6301

- changes createTable to use createTableIfNotExists, this is consistent with deletion
- splits out backup, reset, update and populate functions from migration/index into their own files
- moves the wrapped function for populatingDefaultSettings to fixtures.ensureDefaultSettings
- moves `modelOptions` down to the fixture files that actually use it
- adds test coverage for backup, reset and populate, but not for update as that needs refactoring
2016-03-15 10:11:33 +00:00
..
fixtures Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
backup.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
builder.js Remove i18n from migration output 2016-02-19 12:23:19 +00:00
index.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
populate.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
reset.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
update.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00