Because I always seem to forget this (for Symfony 1.4 btw).
(this assumes you have a running system with an existing database)
-
First, edit
schema.yml
-
Then run this from the command line:
symfony doctrine:generate-migrations-diff
- Then run:
symfony doctrine:build --all-classes
A migration will be generated in /lib/migration/doctrine
Comments
comments powered by Disqus