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:
5
prisma/migrations/20240401150601_init/migration.sql
Normal file
5
prisma/migrations/20240401150601_init/migration.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "hits" (
|
||||
"slug" TEXT NOT NULL PRIMARY KEY,
|
||||
"hits" INTEGER NOT NULL DEFAULT 1
|
||||
);
|
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 = "sqlite"
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user