What's the best way to make small schema updates to your symfony/doctrine application?
My issue is, I'm working on a new side-project and occasionally find myself adding a new column here, a new column there as i find the need. However, my DB already has existing data and I dont want to run a complete rebuild and drop my DB with the changes each time.
I also dont want to write fixtures. They're annoying, and it's much easier to use my application to insert data and keep it around while developing. I also dont want to write a migration to add one or two columns, especially when I'm doing this a lot.
Are my only choices to:
- make changes to the schema file and wipe the db after every schema change -or-
- update the schema file and manually run alter statements on my db
Ultimately, what I'd like to do is either make changes to my db, and have symfony figure out what the schema file should look like, or make changes to the schema file and have symfony figure out what new changes to make to the existing database.
Please help!
Thanks. First time using SO, can't wait to see if i get a response!