Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4559

Create CLI command for optional sqlite initialisation

    • High
    • Change how optional sqlite DB is initialised in order to prevent problems.

      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

            volodymyr@mittagqi.com Volodymyr Kyianenko
            tlauria Thomas Lauria
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: