-
Bug
-
Resolution: Fixed
-
None
-
High
-
Change how optional sqlite DB is initialised in order to prevent problems.
-
Emptyshow more show less
problem
The migration script 466-TRANSLATE-3535-create-sqlite-db-and-table.php produces errors.
solution
Please
- move the content of it into a separate CLI command
- t5 statistics:sqlite:init → or do we have a better CLI namespace for that?
- Keep the 466 file as empty file (to prevent problems when deleting where the file was already rolled out, since we support still no file deletion on update)
- The CLI should also check if the sqlite3 module is loaded: extension_loaded('pdo_sqlite')
- The init command should then also print out, that the engine must be changed manually and the aggregation command must be called
- please test also what happens if someone sets the engine to sqlite without having
-
- sqlite3 installed
- statistics:sqlite:init called
- In both cases a meaningful error should appear