From c043bb776297ec5e9f96c05434be7fefd1c7b507 Mon Sep 17 00:00:00 2001 From: Timur Moziev Date: Tue, 19 Mar 2024 00:22:04 +0300 Subject: [PATCH] fix createMigration --- migrate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.js b/migrate.js index f0c3467..118fba6 100644 --- a/migrate.js +++ b/migrate.js @@ -30,7 +30,7 @@ function createMigration() { query: `INSERT INTO "migrations" ("revision", "${versionColumnName}", "date_migrated") VALUES (?, ?, ?);`, args: [ migrations.length, - process.env.npm_package_version, + process.env.npm_package_version || "-", Math.round(Date.now() / 1000), ], },