Database connection file
Permalink
Hello everybody,
I was updating my Concrete site to the latest version, so I was using the trick of duplicating it, updating+testing the copy and then switching the two, when I noticed something. Usually the file with the database connection credentials, that you had to edit to change the database you were working with, was application/config/database.php containing just an array with database => username => password => etc. Now it's sporting a header saying
"Generated *date-and-time*
DO NOT EDIT THIS FILE DIRECTLY"
which is something that's usually written on files automatically generated using data from somewhere else. Problem is, I can't find mention of this anywhere on this site, no other configuration files or procedures to change the DB connection credentials. Is it undocumented because it's a very recent change, or it's just a warning and I can keep editing database.php directly when I'm moving sites, like I've always done?
Thanks in advance
I was updating my Concrete site to the latest version, so I was using the trick of duplicating it, updating+testing the copy and then switching the two, when I noticed something. Usually the file with the database connection credentials, that you had to edit to change the database you were working with, was application/config/database.php containing just an array with database => username => password => etc. Now it's sporting a header saying
"Generated *date-and-time*
DO NOT EDIT THIS FILE DIRECTLY"
which is something that's usually written on files automatically generated using data from somewhere else. Problem is, I can't find mention of this anywhere on this site, no other configuration files or procedures to change the DB connection credentials. Is it undocumented because it's a very recent change, or it's just a warning and I can keep editing database.php directly when I'm moving sites, like I've always done?
Thanks in advance
When moving a site you need to edit the connection as you have always done and continue being careful not to brick the site in the process.