mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-27 23:50:18 +02:00
added traefik config provider endpoint
This commit is contained in:
parent
a67463a518
commit
07bf2059c6
10 changed files with 134 additions and 472 deletions
|
@ -1,10 +1,13 @@
|
|||
import { migrate } from "drizzle-orm/better-sqlite3/migrator";
|
||||
import db from "@server/db";
|
||||
import path from "path";
|
||||
|
||||
const runMigrations = async () => {
|
||||
console.log("Running migrations...");
|
||||
try {
|
||||
migrate(db, { migrationsFolder: "./server/migrations" });
|
||||
migrate(db, {
|
||||
migrationsFolder: path.join(__dirname, "server/migrations"),
|
||||
});
|
||||
console.log("Migrations completed successfully.");
|
||||
} catch (error) {
|
||||
console.error("Error running migrations:", error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue