import { migrate } from "drizzle-orm/libsql/migrator";
import { client, db } from "./app/db";
// This will run migrations on the database, skipping the ones already applied
await migrate(db, { migrationsFolder: "./drizzle/migrations" });
// Don't forget to close the connection, otherwise the script will hang
await client.close();
import { migrate } from "drizzle-orm/libsql/migrator";
import { client, db } from "./app/db";
// This will run migrations on the database, skipping the ones already applied
await migrate(db, { migrationsFolder: "./drizzle/migrations" });
// Don't forget to close the connection, otherwise the script will hang
await client.close();