File tree 3 files changed +4
-16
lines changed
3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,17 @@ ENVIRONMENT="dev"
4
4
# The secure key Craft will use for hashing and encrypting data
5
5
SECURITY_KEY = " "
6
6
7
- # The database driver that will be used ('mysql' or 'pgsql')
8
- DB_DRIVER = " mysql"
9
-
10
- # The database server name or IP address (usually this is 'localhost' or '127.0.0.1')
11
- DB_SERVER = " localhost"
7
+ # The Data Source Name (“DSN”) that tells Craft how to connect to the database
8
+ DB_DSN = " "
12
9
13
10
# The database username to connect with
14
11
DB_USER = " root"
15
12
16
13
# The database password to connect with
17
14
DB_PASSWORD = " "
18
15
19
- # The name of the database to select
20
- DB_DATABASE = " "
21
-
22
16
# The database schema that will be used (PostgreSQL only)
23
17
DB_SCHEMA = " public"
24
18
25
19
# The prefix that should be added to generated table names (only necessary if multiple things are sharing the same database)
26
20
DB_TABLE_PREFIX = " "
27
-
28
- # The port to connect to the database with. Will default to 5432 for PostgreSQL and 3306 for MySQL.
29
- DB_PORT = " "
Original file line number Diff line number Diff line change 19
19
"rss" : " https://craftcms.com/changelog.rss"
20
20
},
21
21
"require" : {
22
- "craftcms/cms" : " ^3.0 .0" ,
22
+ "craftcms/cms" : " ^3.4 .0" ,
23
23
"vlucas/phpdotenv" : " ^3.4.0"
24
24
},
25
25
"autoload" : {
Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
return [
12
- 'driver ' => getenv ('DB_DRIVER ' ),
13
- 'server ' => getenv ('DB_SERVER ' ),
12
+ 'dsn ' => getenv ('DB_DSN ' ),
14
13
'user ' => getenv ('DB_USER ' ),
15
14
'password ' => getenv ('DB_PASSWORD ' ),
16
- 'database ' => getenv ('DB_DATABASE ' ),
17
15
'schema ' => getenv ('DB_SCHEMA ' ),
18
16
'tablePrefix ' => getenv ('DB_TABLE_PREFIX ' ),
19
- 'port ' => getenv ('DB_PORT ' )
20
17
];
You can’t perform that action at this time.
0 commit comments