fix(backend): resolve migration path relative to __dirname
Some checks failed
CI/CD — Build & Deploy / Deploy to VPS (push) Has been cancelled
CI/CD — Build & Deploy / Build (push) Has been cancelled

migrations glob "src/migrations/**/*.ts" was CWD-relative — broken when CLI runs
outside the src/ directory. Using __dirname makes it absolute and portable.
This commit is contained in:
2026-03-14 07:32:39 +01:00
parent 25733ee3db
commit f1de2bb065

View File

@@ -21,6 +21,6 @@ export const AppDataSource = new DataSource({
require("../entities/PlaylistVideo").PlaylistVideo,
require("../entities/PlaylistShare").PlaylistShare,
],
migrations: ["src/migrations/**/*.ts"],
migrations: [__dirname + "/../migrations/**/*.ts"],
subscribers: [],
});