[pLog-svn] wizard

Mark Wu markplace at gmail.com
Sat Apr 29 18:39:26 GMT 2006


Thanks... :)

If you have no time to do it just let me knoe... I will do it when I have
spare time. 

No matter what ... we still need to com up a "perfect" wizard before we ship
out 1.1  , hee hee ...  Or it will get a lot of troubles for us.

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 2:28 AM
> To: plog-svn at devel.lifetype.net
> Subject: RE: [pLog-svn] wizard
> 
>  	I don't know how much time I can spend on this, though 
> I do want it fixed in the best way, so maybe I will make time.
>  	I have been running the entire wizard multiple times on 
> 1.1.  I don't think the version check is good enough - that 
> will put us back where we were in 1.0, where we have these 
> crazy checks in the code.  I will go through the wizard and 
> see how much needs to be changed.  If it is just the 
> trackbacks, I will fix that.  If it is more, I will probably 
> come back to talk about it more - and have to restore a 
> backup for my own blog probably...
> 
>  	I am working on the config table remove duplicate 
> entries, and I think it will work well, I will probably check 
> in the code soon.
> 
> 
> On Sun, 30 Apr 2006, Mark Wu wrote:
> 
> > >  	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
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> 
> **************************************
> Jon Daley
> http://jon.limedaley.com/
> 
> I give money for church organs in the hope the organ music will
> distract the congregation's attention from the rest of the service.
> -- Andrew Carnegie
> _______________________________________________
> 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