summaryrefslogtreecommitdiffstats
path: root/config/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'config/database.ts')
-rw-r--r--config/database.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/config/database.ts b/config/database.ts
index 7e3774d..d2fabe1 100644
--- a/config/database.ts
+++ b/config/database.ts
@@ -7,7 +7,6 @@
7 7
8import path from 'node:path'; 8import path from 'node:path';
9import env from '#start/env'; 9import env from '#start/env';
10import { DatabaseConfig } from '@adonisjs/lucid/database';
11import { defineConfig } from '@adonisjs/lucid'; 10import { defineConfig } from '@adonisjs/lucid';
12 11
13const databaseConfig = defineConfig({ 12const databaseConfig = defineConfig({
@@ -53,7 +52,6 @@ const databaseConfig = defineConfig({
53 }, 52 },
54 useNullAsDefault: true, 53 useNullAsDefault: true,
55 healthCheck: false, 54 healthCheck: false,
56 debug: env.get('DB_DEBUG', false),
57 }, 55 },
58 56
59 /* 57 /*
@@ -71,7 +69,7 @@ const databaseConfig = defineConfig({
71 client: 'mysql', 69 client: 'mysql',
72 connection: { 70 connection: {
73 host: env.get('DB_HOST', 'localhost'), 71 host: env.get('DB_HOST', 'localhost'),
74 port: env.get('DB_PORT', ''), 72 port: Number(env.get('DB_PORT')),
75 user: env.get('DB_USER', 'root'), 73 user: env.get('DB_USER', 'root'),
76 password: env.get('DB_PASSWORD', ''), 74 password: env.get('DB_PASSWORD', ''),
77 database: env.get('DB_DATABASE', 'ferdium'), 75 database: env.get('DB_DATABASE', 'ferdium'),
@@ -80,7 +78,6 @@ const databaseConfig = defineConfig({
80 naturalSort: true, 78 naturalSort: true,
81 }, 79 },
82 healthCheck: false, 80 healthCheck: false,
83 debug: env.get('DB_DEBUG', false),
84 }, 81 },
85 82
86 /* 83 /*
@@ -98,7 +95,7 @@ const databaseConfig = defineConfig({
98 client: 'pg', 95 client: 'pg',
99 connection: { 96 connection: {
100 host: env.get('DB_HOST', 'localhost'), 97 host: env.get('DB_HOST', 'localhost'),
101 port: env.get('DB_PORT', ''), 98 port: Number(env.get('DB_PORT')),
102 user: env.get('DB_USER', 'root'), 99 user: env.get('DB_USER', 'root'),
103 password: env.get('DB_PASSWORD', ''), 100 password: env.get('DB_PASSWORD', ''),
104 database: env.get('DB_DATABASE', 'ferdium'), 101 database: env.get('DB_DATABASE', 'ferdium'),
@@ -113,7 +110,6 @@ const databaseConfig = defineConfig({
113 naturalSort: true, 110 naturalSort: true,
114 }, 111 },
115 healthCheck: false, 112 healthCheck: false,
116 debug: env.get('DB_DEBUG', false),
117 }, 113 },
118 }, 114 },
119}); 115});