Skip to content

Commit

Permalink
moved sqlite to .data for stackblitz sqlite support
Browse files Browse the repository at this point in the history
  • Loading branch information
Smef committed Jun 8, 2024
1 parent effb185 commit 02fa0f0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dist
.nuxt
.output
.data
!playground/.data
.vercel_build_output
.build-*
.netlify
Expand Down
2 changes: 1 addition & 1 deletion drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default {
dialect: "sqlite",
verbose: true,
dbCredentials: {
url: "./playground/database/sqlite.db",
url: "./playground/.data/sqlite.db",
},
} satisfies Config;
File renamed without changes.
2 changes: 1 addition & 1 deletion playground/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 02fa0f0

Please sign in to comment.