On Fri, Mar 28, 2008 at 11:04:12PM -0300, Sam's Lists wrote:
> Now the next step....I have a bunch of existing tables with data in them to
> which I want to add versioning. I was sort of hoping that the version
> tables would just spring magically into existence but obviously they don't.
> How do I create them? Hopefully there is some function I can call somewhere
> or some program I can run?
>
> I looked through the source code and found a createVersionTable that looks
> like it might be helpful. But I'm not sure how to call it, and I'm
> especially not sure what to pass into it.
class Test(SQLObject):
data = Versioning()
Test.data.versionClass.createTable(ifNotExists=True)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss