Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Generating ALTER TABLE code for MySQLby badaiaqrandista (Pilgrim) |
on Oct 22, 2006 at 09:02 UTC ( [id://579841]=note: print w/replies, xml ) | Need Help?? |
This is how I do it:
I actually have the script but it still contains my company's specific code in it. If you don't mind playing around with it to make it work in your situation, I probably can send it to you upon request. This is basically a primitive database versioning system. I recently added a hook functionality into it, which will be automatically called before or after applying an sql file. If I have time, I'd like to submit it to CPAN. But that's quite a big 'if' considering my current workload. Hope that helps.
-cheepy-
In Section
Seekers of Perl Wisdom
|
|