I am using Doctrine2 migrations. I need some answers about my doubt, I canno find a good solution in documentations
I use:
doctrine migrations:diff // generate migrations files
doctrine migrations:migrate // migrates up to new version
How Can I migrate down? specifying the previous version did not work ( nothing to update it says f.e. doctrine migrations:migrate Version20120211163332 it says
Migrating up to Version20120211163332 from 20120309112058
[Doctrine\DBAL\Migrations\MigrationException]
Could not find any migrations to execute.
But it's not up it should be down! you can see also on versions in response
If I have to make some DB update, is it possible to add some SQL Queries in additions ( alter some datas related to other) ? I have not tried still since the down is not working :((
Is there any way to use the migrate command in a browser nutshell ? I have sw in a shared hosting without console access so I need this feature, instead of copying queries one by one :D in phpMyAdmin
I saw this doc on Symfony's website : http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html#usage
There is doctrine:migrations:execute
that allows you to execute a single migration version up or down manually... but never tried, sorry.
Hope this helps !
Keep us posted.