Migration stopped working after v3.1.11 |
(10-04-2019, 02:38 PM)jreklund Wrote: @davefriend: It haven't always been there, look at the commit. It just got added to system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php You're partly correct - it hasn't always been there since CI v3.0.0 From CodeIgniter version 2.1.3 (the oldest I have handy) pdo_driver.php PHP Code: function _list_tables($prefix_limit = FALSE) So, it was there and then it wasn't and now it is again. For PDO the database name need not be included in the query, but it isn't wrong to provide it. (Though it does need to be a useful value.) I cannot see that the database property would get set from a DSN string. It seems only to get a value from the /config/database.php file. If PDO is being used (meaning the connection is via 'dsn') then the connection settings might have 'database' => '', and that might be why the "incorrect database name '' " error is happening. We don't know if he's using PDO anyway though it seems likely. It might be possible to stick with CI v3.1.11 by setting a database name in the config. |
Messages In This Thread |
Migration stopped working after v3.1.11 - by bartMommens - 10-04-2019, 02:55 AM
RE: Migration stopped working after v3.1.11 - by mboufos - 10-04-2019, 05:31 AM
RE: Migration stopped working after v3.1.11 - by bartMommens - 10-04-2019, 05:34 AM
RE: Migration stopped working after v3.1.11 - by mboufos - 10-04-2019, 05:50 AM
RE: Migration stopped working after v3.1.11 - by bartMommens - 10-04-2019, 06:36 AM
RE: Migration stopped working after v3.1.11 - by jreklund - 10-04-2019, 12:35 PM
RE: Migration stopped working after v3.1.11 - by dave friend - 10-04-2019, 01:07 PM
RE: Migration stopped working after v3.1.11 - by jreklund - 10-04-2019, 02:38 PM
RE: Migration stopped working after v3.1.11 - by dave friend - 10-04-2019, 08:09 PM
RE: Migration stopped working after v3.1.11 - by bartMommens - 10-05-2019, 12:39 AM
|