We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04c657 commit 72e0126Copy full SHA for 72e0126
src/db/habits/index.ts
@@ -8,7 +8,7 @@ import path from 'path';
8
const dbPath = path.join(process.cwd(), 'data', 'habits.db');
9
10
// Create SQLite connection
11
-const sqlite = new Database(dbPath);
+const sqlite = new Database(dbPath, { create: true });
12
13
// Enable foreign keys
14
sqlite.exec('PRAGMA foreign_keys = ON;');
0 commit comments