[jifty-devel] Ideas for Jifty plugins
jesse at bestpractical.com
Thu Feb 1 17:13:13 EST 2007
> 4. Another piece to add is the ability to add new columns and build
> relationships. I plan to provide a form for creating one-to-one,
> one-to-many, and many-to-one relationships between models.
> That last point (4) will, upon save, add the column and then perform a
> redeploy to update the database. I'm building out some workflow diagrams
> to help me get these initial operations setup correctly.
Just updating the columns in the ModelClassColumn table should magically
do the right thing on the fly. Right now, only adding columns does the
right thing, but the hooks are there. (And tests are in progress. I'm
not writing the functionality until I have failing tests ;)
> Amongst other operations. Work also needs to be done to allow for the
> versioning of these databases so that you could create a generic
> application using these models and then be able to take an old version
> and upgrade to the latest version by loading the latest model and column
> information. Some of the footwork has been started there as well.
Yep, there's some of that already in Jifty::Script::Database, but it does
need a bunch more work. In fact, it should magically just work as soon
as the column delete code starts to work.
More information about the jifty-devel