mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 19:34:51 +00:00
27 lines
468 B
JavaScript
27 lines
468 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
/**
|
||
|
* Module dependencies
|
||
|
*/
|
||
|
|
||
|
// Node.js core.
|
||
|
const path = require('path');
|
||
|
|
||
|
/**
|
||
|
* Generate migration files
|
||
|
*/
|
||
|
|
||
|
module.exports = {
|
||
|
templatesDirectory: path.resolve(__dirname, '..', 'templates'),
|
||
|
before: require('./before'),
|
||
|
after: require('./after'),
|
||
|
targets: {
|
||
|
'data/migrations/:connection/:filename': {
|
||
|
template: 'migration.template'
|
||
|
},
|
||
|
'data/seeds/:connection/:filename': {
|
||
|
template: 'seed.template'
|
||
|
}
|
||
|
}
|
||
|
};
|