ellisv / oxid-console

[UNMAINTAINED] OXID Console is php console application for OXID Shop. It provides an API for writing various commands. We have shipped very common for every oxid shop project commands out of the box.
MIT License
23 stars 17 forks source link

Migration cache should stored in database. #17

Closed robinlehrmann closed 10 years ago

robinlehrmann commented 10 years ago

Hi,

very cool project! But I have one problem:

I have shops in multiple environments: development testing staging production

Each environment has it's own database and my deploy software (http://typo3.org/additional-products/surf/) restore the current live database and create a new installtion of the shop:

releases/201410011000/ releases/201410012000/ releases/201410013000/ releases/201410014000/ releases/201410013000/previous -> releases/201410013000/ releases/201410014000/current -> releases/201410014000 <- thats active the root dir of vhost

The problem:

I deploy a new feature with new database tables and columns but the deployment restore the database. The columns and tables are deleted. Now I run "oxid migrate" and all migrations are executed.

So I think a table is the best solution to resolv this problem.

It would be nice to have this features:

If you want I could create some pull-request for it.

Cheers, Robin

ellisv commented 10 years ago

Saving migration status in database might be not a bad idea. Will think about it.

I've got big plans for new oxid console version to have it as a standalone application which bootstraps oxid inside.

ellisv commented 10 years ago

Migration statuses are already stored in database with a pull request #21