View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007605 | OXID eShop (all versions) | 4.01. Database handling | public | 2024-02-29 17:30 | 2024-03-01 13:12 |
Reporter | LarsStegelitz | Assigned To | |||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 7.0.0 | ||||
Summary | 0007605: DB migration does not use dbDriverOptions from config.inc.php | ||||
Description | It's probably a rare case, but affected me lately... The database migration "oe-eshop-db_migrate" does not consider the "dbDriverOptions" from config.inc.php, making it impossible to activate specific database options. In my case the customer wanted a SSL encrypted MySQL connection from the shop, for which I had to add the CA certificate via the driver options. Shop runs fine with it. When trying to run the database migration on the encrypted DB connection, the task fails, because the driver options (with the CA cert path) where missing. I created a composer patch to circumvent the issue for my project. | ||||
Steps To Reproduce | To trigger an error situation is not so easy, as it would require an actual encrypted database connection. However, you can try to pass any dbDriverOptions from config.inc.php to the migration script and won't see it there. | ||||
Additional Information | - vendor/oxideshop-doctrine-migration-wrapper/scr/migrations-db.php Creates the array with driver options for the migration, and it uses hardcoded driver options. Desired solution: add driver options (if existing) from config.inc.php of the project to here | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||