We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc4bf56 commit 44e505bCopy full SHA for 44e505b
packages/v3/migration/engine/Engine.ts
@@ -162,6 +162,11 @@ export class Engine {
162
// update current state to the network directory
163
this.migration.state = this.IO.state.fetch(this.pathToNetworkDir);
164
165
+ // create migrations dir if it doesn't exist
166
+ if (!fs.existsSync(this.pathToMigrationsDir)) {
167
+ fs.mkdirSync(this.pathToMigrationsDir);
168
+ }
169
+
170
// generate migration files
171
const allMigrationFiles = fs.readdirSync(this.pathToMigrationsDir);
172
const migrationFiles = allMigrationFiles.filter((fileName: string) => fileName.endsWith('.ts'));
0 commit comments