1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 16:45:31 -04:00

point prisma to vercel postgres

This commit is contained in:
2023-06-17 21:24:12 -04:00
parent fd12689a49
commit d058279609
7 changed files with 27 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "hits" (
"slug" VARCHAR(128) NOT NULL,
"hits" INTEGER NOT NULL DEFAULT 1,
CONSTRAINT "hits_pkey" PRIMARY KEY ("slug")
);

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"

View File

@@ -1,11 +1,13 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
previewFeatures = ["jsonProtocol"]
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
shadowDatabaseUrl = env("POSTGRES_URL_NON_POOLING")
}
model hits {