On 22.11.2007, at 21:46, Wicked wrote:
> >> I can just make a backup copy under a new name when I run the tool to >> create a diff. That way I have the copy available for the next run of >> the script. > > Ok, I see your standpoint. And it doesn't look like a correct way for > me. > What I'm thinking is that using migrations should satisfy following > requirements: > 1) each VCS (svn, csv, whatever...) revision should be atomic. So each > migrations between any two revisions should describe the same changes > that were done in the schema. So, e.g. changing schema in one > revision, but migration in a following one should be restricted. This > is mostly about development culture. i prefer small teams and there i prefer a commit often approach for things that people work on together to keep people in the loop. when people work on something on their own, then its not so ueber critical that there is a migration anyways, so in that case i am also not so concerned. that being said i have never done a true TDD project and i see that not having a migration around for every commit would mean that the tests start exploding which would suck. > 3) it should be handy and maximally automatic. What you're saying > about - to make backup files - seems messy to me. Unfortunately I must > admit I would use `schema-diff schema.yml .svn/text-base/ > schema.yml.svn-base` instead of your way. As I would say, it's the > least of evils :) Probably some script would do backing up, but again, > it should follow the requirement #1, so as I see something like svn > keyword $id: $ will be a must some way. well if it makes you happier you could use svn:externals to point to the earlier revision of the file (not sure if that is actually legit in svn). regards, Lukas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
