[pLog-svn] wizard

Mark Wu markplace at gmail.com
Sat Apr 29 18:21:25 GMT 2006


 >  	I think it would be nice if it wouldn't error out - 
> makes for easier testing, and makes it so that all of us 
> (developers) can just re-run the wizard, and not end with 
> out-of-sync databases, like what happened to me and a handful 
> of other people on the forums in the upgrade to 1.0.
> 
>  	So, to do that, we just have to be smart about checking 
> the data, and not failing the whole update, if the data has 
> already been modified. 

Hi Jon:

I said there is no way in current core does not means we never want to
implement this. Here comes what I think:

1. If it is a new installation, we have to add a new config value "version"
to our config table
2. if it is a upgrade, we have to check the config value "version"  does
exist or not.
	- If yes, then we can compare the current version and exist version
to decide we upgrapde from 1.1 or from 1.0 .... After the upgrade complete,
we write the new version back to the config value "version"
	- If not, we should check the database structure to determine we
upgrade from 1.1 or from 1.0....After the upgrade complete, we add a new
config value "version to the config table to keep track the version
information.
3.If we know we upgrade from 1.1, then we just skip the data content change
phase and only do data structure change phase,  or firing other data content
change process.

> Nothing else failed for me, but I have now re-run the wizard 
> a couple times - everything seems to be okay, have I messed 
> up my database by doing that, I assumed that is what all of 
> you were doing - 

If you did not go trhough the data content change, I think you did not mess
up any data ...

>I guess you have just been testing on clean 
> installs, and off of a backup of your 1.0 install each time?

I  tested this function more then 10 times (no matter from 1.1->1.1 or from
1.0->1.1),....  So I know this problem is there .. 

But I just has no easy way to solve it at this moment. So, the solution is
what I proposed above...  

Do you think you can have time to take care to this? 

Mark


> 
> On Sun, 30 Apr 2006, Mark Wu wrote:
> 
> > Nope ...
> >
> > Actually, wizard just do the upgrade data structure through the pdb 
> > data dictionary  function.
> >
> > it never know we upgrade from 1.0 to 1.1 or 1.1 to 1.1 ...
> >
> > So, it will run every step one by one ...
> >
> > If you upgrade from 1.1 to 1.1, ..... It will works well 
> except data 
> > chage...
> >
> > There is no version control or comparision function in current or 
> > easier lifetype core ... So, I think there is no way to 
> prevent this 
> > problem happened.
> >
> > Mark
> >
> >> -----Original Message-----
> >> From: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> >> Sent: Sunday, April 30, 2006 12:56 AM
> >> To: LifeType SVN
> >> Subject: [pLog-svn] wizard
> >>
> >>  	I just ran the wizard again on my 1.1 install.  I am 
> not exactly 
> >> sure how it is supposed to work.
> >>  	There is one "todo" having to do with trackbacks, so 
> maybe that is 
> >> my confusion.  I had already erased my trackbacks table, since it 
> >> isn't used, and I never used it in 1.0 anyway.  But, the wizard 
> >> expected to be able to find it, so I created a fake one to make it 
> >> happy.
> >>  	Eventually, the wizard will know it is updating from
> >> 1.1 to 1.1, so it won't try to find the trackbacks table, right?
> >>
> >>
> >> **************************************
> >> Jon Daley
> >> http://jon.limedaley.com/
> >>
> >> Lady: One who makes a man behave like a gentleman.
> >> -- Jimmy Lyons
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> 
> **************************************
> Jon Daley
> http://jon.limedaley.com/
> 
> Eat drink and be merry, for tomorrow they may make it illegal.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list