Switch to @vercel/kv
This commit is contained in:
parent
45d3a8d0ee
commit
fc79a708f4
20 changed files with 188 additions and 1079 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import { migrate } from "drizzle-orm/vercel-postgres/migrator";
|
||||
import { db } from "./schema";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
// @ts-ignore
|
||||
migrate(db, {
|
||||
migrationsFolder: "lib/db/migrations",
|
||||
})
|
||||
.then(() => {
|
||||
console.log("Migration was succesfull!");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error("Migration failed:", err);
|
||||
})
|
||||
.finally(() => {
|
||||
console.info("Migration finished");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue