diff --git a/.gitignore b/.gitignore index 7a3eb22..06952e2 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ dist .nuxt .output .data +!playground/.data .vercel_build_output .build-* .netlify diff --git a/drizzle.config.ts b/drizzle.config.ts index 42011c1..755a1c3 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -7,6 +7,6 @@ export default { dialect: "sqlite", verbose: true, dbCredentials: { - url: "./playground/database/sqlite.db", + url: "./playground/.data/sqlite.db", }, } satisfies Config; diff --git a/playground/database/sqlite.db b/playground/.data/sqlite.db similarity index 100% rename from playground/database/sqlite.db rename to playground/.data/sqlite.db diff --git a/playground/database/index.ts b/playground/database/index.ts index 39c9bd3..9ec229d 100644 --- a/playground/database/index.ts +++ b/playground/database/index.ts @@ -2,7 +2,7 @@ import { drizzle, BetterSQLite3Database } from "drizzle-orm/better-sqlite3"; import Database from "better-sqlite3"; import registrations from "./schema/registrations"; -const sqlite = new Database("./playground/database/sqlite.db"); +const sqlite = new Database("./playground/.data/sqlite.db"); const config = { schema: { registrations },