mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: Introduce Drizzle ORM for database management and a script for initial schema setup.
This commit is contained in:
1 parent
69e2f9c325
commit
6046be50de
2 files changed
+6
-6
No files matched your search
+3
-3
@@ -21,10 +21,10 @@ async function main() {
|
||||
console.error("[DB Init] Error reading .db-config.json", e);
|
||||
}
|
||||
|
||||
// Force environment variable if present (for Docker/DevOps consistency)
|
||||
if (process.env.DATABASE_URL) {
|
||||
// Use environment variable as default IF NOT already loaded from config
|
||||
if (!connectionString && process.env.DATABASE_URL) {
|
||||
connectionString = process.env.DATABASE_URL;
|
||||
console.log("[DB Init] Using environment variable DATABASE_URL (Priority).");
|
||||
console.log("[DB Init] Using environment variable DATABASE_URL as fallback.");
|
||||
}
|
||||
|
||||
if (!connectionString) {
|
||||
|
||||
Reference in new issue
Block a user