drizzle-orm 0.10.34 → 0.10.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/migrator/migrator.js +1 -1
- package/package.json +1 -1
package/migrator/migrator.js
CHANGED
|
@@ -82,7 +82,7 @@ class Migrator {
|
|
|
82
82
|
const hour = Number(migrationFolder.slice(8, 10));
|
|
83
83
|
const min = Number(migrationFolder.slice(10, 12));
|
|
84
84
|
const sec = Number(migrationFolder.slice(12, 14));
|
|
85
|
-
const folderAsMillis =
|
|
85
|
+
const folderAsMillis = Date.UTC(year, month, day, hour, min, sec);
|
|
86
86
|
console.log(`Check if migration ${migrationFolder} should be executed.`);
|
|
87
87
|
console.log(`Folder name to millis = ${folderAsMillis}`);
|
|
88
88
|
if (!lastDbMigration || lastDbMigration.createdAt < folderAsMillis) {
|