Ghost/core/server/data/migrations/init/2-create-fixtures.js
Hannah Wolfe 426c8bf918
Refactored fixtures to be loaded by fixture manager
refs: https://github.com/TryGhost/Toolbox/issues/133

- instead of just a collection of utils, we now have a class that manages fixtures
- this should allow us to change the path to fixtures, e.g. between prod/dev and test, so that different fixtures can be loaded by default
- also makes it easier to test the fixture manager code itself
2021-11-16 11:17:03 +00:00

10 lines
233 B
JavaScript

const {fixtureManager} = require('../../schema/fixtures');
module.exports.config = {
transaction: true
};
module.exports.up = async function insertFixtures(options) {
return await fixtureManager.addAllFixtures(options);
};