migrationsscript erstellt

This commit is contained in:
ecki
2026-04-06 18:07:00 +02:00
parent 69f94cec83
commit e4e42b0472
8 changed files with 187 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
const fs = require("fs");
const path = require("path");
const migrationsDir = __dirname;
const migrations = fs
.readdirSync(migrationsDir)
.filter((file) => file.endsWith(".js") && file !== "index.js")
.sort()
.map((file) => require(path.join(migrationsDir, file)));
module.exports = migrations;