Database
Updated to just use DATABASE_* in everything other than local docker.
This commit is contained in:
19 files changed
+120
-56
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Dev/demo fixtures. Run with `npm run prisma:seed` (requires a reachable
|
||||
* DATABASE_URL — see .env.example). Intentionally small: enough to exercise
|
||||
* DATABASE_HOST/NAME/USER/PASSWORD — see .env.example). Intentionally small: enough to exercise
|
||||
* every relation in the schema once, not a full demo dataset.
|
||||
*/
|
||||
import "dotenv/config";
|
||||
@@ -28,7 +28,7 @@ function minutesFromNow(minutes: number): Date {
|
||||
return new Date(Date.now() + minutes * 60_000);
|
||||
}
|
||||
|
||||
const adapter = new PrismaMariaDb(buildMysqlPoolConfig(process.env.DATABASE_URL));
|
||||
const adapter = new PrismaMariaDb(buildMysqlPoolConfig());
|
||||
const prisma = new PrismaClient({ adapter });
|
||||
|
||||
const WEEKDAYS: Weekday[] = [
|
||||
|
||||
Reference in new issue
Block a user