Fix scripts

This commit is contained in:
Adria Navarro 2023-12-29 12:25:25 +01:00
parent 6909cbed29
commit 863587ef30
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ const generateTimestamp = () => {
}
const createMigrationFile = () => {
const migrationFilename = `${generateTimestamp()}_${title}`
const migrationFilename = `${generateTimestamp()}_${title
.replace(/-/g, "_")
.replace(/ /g, "_")}`
const migrationsDir = "../packages/server/src/appMigrations"
const template = `const migration = async () => {