chore: switch database provider from SQLite to PostgreSQL

This commit is contained in:
2026-03-30 21:31:36 -07:00
parent e061e1e9f7
commit ef01061a05
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "sqlite"
provider = "postgresql"
+6
View File
@@ -9,6 +9,12 @@ const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
// Load .env file if it exists
const envPath = path.resolve(__dirname, '..', '.env');
if (fs.existsSync(envPath)) {
require('dotenv').config({ path: envPath });
}
function checkPostgresConnection() {
try {
const dbUrl = process.env.DATABASE_URL;