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:
7
prisma/migrations/20230618005755_init/migration.sql
Normal file
7
prisma/migrations/20230618005755_init/migration.sql
Normal 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")
|
||||
);
|
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal 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"
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user