diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-11 19:15:20 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-02-13 06:59:44 +0530 |
commit | 8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch) | |
tree | cab910ad5048eece2d229648f2c17000ac86a44d /config/database.ts | |
parent | updates (diff) | |
download | ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.gz ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.zst ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.zip |
Diffstat (limited to 'config/database.ts')
-rw-r--r-- | config/database.ts | 8 |
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 | ||
8 | import path from 'node:path'; | 8 | import path from 'node:path'; |
9 | import env from '#start/env'; | 9 | import env from '#start/env'; |
10 | import { DatabaseConfig } from '@adonisjs/lucid/database'; | ||
11 | import { defineConfig } from '@adonisjs/lucid'; | 10 | import { defineConfig } from '@adonisjs/lucid'; |
12 | 11 | ||
13 | const databaseConfig = defineConfig({ | 12 | const 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 | }); |