1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 10:55:31 -04:00

goodbye planetscale 🪦 hello turso 👋

This commit is contained in:
2024-04-01 11:12:24 -04:00
parent 1813de3f0a
commit 971747a161
12 changed files with 256 additions and 18 deletions

View File

@@ -0,0 +1,5 @@
-- CreateTable
CREATE TABLE "hits" (
"slug" TEXT NOT NULL PRIMARY KEY,
"hits" INTEGER NOT NULL DEFAULT 1
);

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 = "sqlite"

View File

@@ -1,14 +1,14 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
provider = "sqlite"
url = env("TURSO_DATABASE_URL")
}
model hits {
slug String @id @db.VarChar(128)
slug String @id
hits Int @default(1)
}