Skip to content

v7.5.41

@se7enxweb se7enxweb tagged this 10 Apr 02:44
Added:
- data/sqlite/cleandata.sql: Full seed data file ported from MySQL.
  All MySQL string escape sequences converted for SQLite compatibility:
  \' → '' (SQL single-quote), \" → " (literal double-quote),
  \n/\r/\t → real whitespace bytes, \\ → single backslash.
  Includes ezcontentobject, ezcontentclass, ezcontentobject_attribute,
  ezcontentobject_tree and all related tables required for indexing.

- eZ/Bundle/PlatformInstallerBundle/src/Installer/ExponentialOssInstaller.php:
  New named install type 'exponential-oss' extending CoreInstaller.
  Distinct from the generic 'clean' type so OSS-specific seed data,
  binaries or post-install steps can be added independently in future.

Changed:
- eZ/Bundle/PlatformInstallerBundle/src/Command/InstallPlatformCommand.php:
  SQLite-native database creation in checkCreateDatabase(). Detects
  pdo_sqlite driver and uses file_exists()/touch() directly instead of
  delegating to doctrine:database:create --if-not-exists, which calls
  listDatabases() — an operation not supported by the SQLite platform.
  MySQL/PostgreSQL connections continue to use the existing subprocess path.
  Also wraps indexData() in a try/catch so a non-fatal reindex warning
  on a fresh empty install does not abort the install command.

- eZ/Bundle/PlatformInstallerBundle/src/Resources/config/services.yml:
  Registers ExponentialOssInstaller with tag ezplatform.installer type: exponential-oss.

Tested: php bin/console ezplatform:install exponential-oss (SQLite pdo_sqlite)
  → 291 schema queries, 1954 data queries, 13 items indexed, exit 0.
Assets 2
Loading