30 Mar 19:13
Re: Versioning not defined.
From: Oleg Broytmann <phd <at> phd.pp.ru>
Subject: Re: Versioning not defined.
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-03-30 17:13:54 GMT
Subject: Re: Versioning not defined.
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-03-30 17:13:54 GMT
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/ phd <at> phd.pp.ru 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

RSS Feed