On Thu, Jul 3, 2008 at 6:59 PM, Olli Wang <[EMAIL PROTECTED]> wrote: > > On Jul 4, 9:42 am, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: >> How is it possible to not require an upgrade script? What happens if >> I'm changing an email field into two fields, one for the username and >> one for the server? >> >> -jj >> >> -- >> It's a walled garden, but the flowers sure are >> lovely!http://jjinux.blogspot.com/ > > What miruku does is finding the difference between original schema and > modified schema, then upgrade the original schema to the modified > schema (add/drop columns/tables, etc). > In your question, it seems you just need to add a new email column > which may be located in the same or different table. It doesn't > matter, just change the model schema code by add a new email column > and run miruku upgrade command. Then you will have two email field. > However, currently miruku only support add/drop tables/columns/index. > So there is no way to copy the email value to the new field > automatically. But I think it's a good idea to work it our in the > future. :)
I think it's an 80/20 thing. You got 80% of what everyone needs by writing 20% of the code, and, as usual, I'm obsessed with the remaining 20% ;) Happy Hacking! -jj -- It's a walled garden, but the flowers sure are lovely! http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---