mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
22 lines
601 B
TypeScript
22 lines
601 B
TypeScript
// import { drizzle } from "drizzle-orm/postgres-js";
|
|
// import { migrate } from "drizzle-orm/postgres-js/migrator";
|
|
// import postgres from "postgres";
|
|
|
|
// const connectionString = process.env.DATABASE_URL!;
|
|
|
|
// const sql = postgres(connectionString, { max: 1 });
|
|
// const db = drizzle(sql);
|
|
|
|
// export const migration = async () =>
|
|
// await migrate(db, { migrationsFolder: "drizzle" })
|
|
// .then(() => {
|
|
// console.log("Migration complete");
|
|
// sql.end();
|
|
// })
|
|
// .catch((error) => {
|
|
// console.log("Migration failed", error);
|
|
// })
|
|
// .finally(() => {
|
|
// sql.end();
|
|
// });
|