mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 07:35:02 +00:00
typeorm: set migrationsDir to the dev folder
The actual migrations are run based on the "migrations" array, so this only affects the migration creation command (which is always in dev).
This commit is contained in:
parent
0112742093
commit
83e92899ae
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ moment.tz.setDefault('UTC');
|
|||
|
||||
const entities = path.relative(process.cwd(), path.resolve(__dirname, 'dist/backend/src/data/entities/*.js'));
|
||||
const migrations = path.relative(process.cwd(), path.resolve(__dirname, 'dist/backend/src/migrations/*.js'));
|
||||
const migrationsDir = path.relative(process.cwd(), path.resolve(__dirname, 'src/migrations'));
|
||||
|
||||
module.exports = {
|
||||
type: "mysql",
|
||||
|
@ -50,6 +51,6 @@ module.exports = {
|
|||
// Migrations
|
||||
migrations: [migrations],
|
||||
cli: {
|
||||
migrationsDir: path.dirname(migrations)
|
||||
migrationsDir,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue