mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +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
b47872bf87
commit
29d0bc3a18
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
Reference in a new issue