Initial commit of Vellum, an event photo product for guest uploads, host moderation, and original-quality galleries.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import "dotenv/config";
|
||||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import { migrate } from "drizzle-orm/postgres-js/migrator";
|
||||
import postgres from "postgres";
|
||||
|
||||
const url =
|
||||
process.env.DATABASE_URL ??
|
||||
"postgres://album:album@localhost:5439/album";
|
||||
|
||||
const client = postgres(url, { max: 1 });
|
||||
const db = drizzle(client);
|
||||
|
||||
await migrate(db, { migrationsFolder: "./drizzle" });
|
||||
await client.end();
|
||||
|
||||
console.log("Migrations applied successfully.");
|
||||
Reference in New Issue
Block a user