db.xml ignored in package when version = 1.0
Permalink
I'm working on a package and ran into this problem. For some reason if I install the package with version 1.0 as my package version (in both the controller and db.xml), then C5 completely ignores db.xml and installs the package without the schema.
I narrowed the problem down to the Package class:
Line 169 and following:
$schema = $db->getADOSChema();
$sql = $schema->ParseSchema($xmlFile); /* ParseSchema() is returning empty */
$db->IgnoreErrors($handler);
Even if I fill db.xml with erroneous text it still just ignores it. It was not until I installed the package with 0.3 as the version did it work.
C5 Version: 5.4.2.1
I narrowed the problem down to the Package class:
Line 169 and following:
$schema = $db->getADOSChema();
$sql = $schema->ParseSchema($xmlFile); /* ParseSchema() is returning empty */
$db->IgnoreErrors($handler);
Even if I fill db.xml with erroneous text it still just ignores it. It was not until I installed the package with 0.3 as the version did it work.
C5 Version: 5.4.2.1
But these lines are NOT related to the package version, it just refers to the xml and schema protocols. Don't change it, leave it as it is.
The only place where the package version is specified is the package controller.php