Hi Amely,

after some quick code-review, there seems to be no passing-thru of further doctrine parameters in the OXID wrapper script:

https://github.com/OXID-eSales/oxideshop-doctrine-migration-wrapper/blob/master/bin/migrate.php#L48


My first guess is to modify

https://github.com/OXID-eSales/oxideshop-doctrine-migration-wrapper/blob/master/src/Migrations.php#L115

for passing additional options.


Best,

Manuel



On 04.12.2017 17:14, Amely Kling wrote:
Hi guys!

While updating a live instance version we stumbled onto something. For some reasons we generally don’t want to use automatic database migrations on live systems without explicitly knowing what will happen on that exact system. To know what happened earlier on staging- or testing-systems is nice, but not sufficient for us.

We tried to use the doctrine parameters `--dry-run` and `--write-sql` to get a preview before running the actual migrations, but we couldn’t pass these parameters on. Did anyone else run into this, and has found a way to pass on doctrine parameters?

Basically we’re looking for something like:

    vendor/bin/oe-eshop-db_migrate migrations:migrate --dry-run



Best Regards

*Amely Kling*
Product- und Processmanager     <http://www.noriskshop.de/>

Telefon
Fax
E-Mail
Web     +49 89 599 760 78 0
+49 89 599 760 78 90
akl...@noriskshop.de <mailto:akl...@noriskshop.de>
noriskshop.de <http://www.noriskshop.de/>

        
                <https://www.facebook.com/noriskshop>

norisk GmbH – Dachauer Str. 233 – 80637 München
Amtsgericht: München HRB 184603 – Geschäftsführer: Dominik Haupt, Christian Elsner – USt.-ID: DE272082529

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. *** This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


--
        
Manuel Reiß
Team Lead Software Development (Berlin)
Telefon: +49 (0)30 60984747-7
manuel.re...@netformic.de

NETFORMIC GmbH
HRB 720729, Amtsgericht Stuttgart
USt-IdNr.: DE814688053
Geschäftsführer: Jens Rilling, Timo Weltner

Stuttgart
Hermannstraße 5A, 70178 Stuttgart
Telefon: +49 (0)711 761642-0, Fax: -26

Berlin
Fanny-Zobel-Straße 11, 12435 Berlin
Telefon: +49 (0)30 60984747-0, Fax: -9

Reply via email to