[pLog-svn] r6318 - plog/branches/lifetype-1.2

Jon Daley plogworld at jon.limedaley.com
Thu Apr 24 16:26:49 EDT 2008


 	Yes, I see that.  I also see that I added the code before 1.2 was 
released.  I don't remember when we added the permissions stuff, was that 
in 1.1, so it didn't matter that code was there?
 	I certainly have installed new 1.2 installations, and upgraded 
lots of people using that wizard, so it is odd that it worked, though I 
agree that it was a bug.  Maybe all the installations I have done have 
only had one page of users, so I didn't need the reload?

On Fri, 25 Apr 2008, Mark Wu wrote:

> You can not put the code there, it will break the upgrade process.
>
> You only can drop the table in the end of transformation or just leave it
> there.
>
> 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: Friday, April 25, 2008 3:05 AM
>> To: LifeType Developer List
>> Subject: Re: [pLog-svn] r6318 - plog/branches/lifetype-1.2
>>
>>  	Be careful on this one.  I believe I added this code -
>> we didn't used to ever drop the table at all, and just it in
>> the database permanently.  So, as long as you make sure it is
>> getting dropped at the end (on either a failure or success),
>> it should be okay.
>>
>> On Thu, 24 Apr 2008, mark at devel.lifetype.net wrote:
>>
>>> Author: mark
>>> Date: 2008-04-24 14:11:23 -0400 (Thu, 24 Apr 2008) New
>> Revision: 6318
>>>
>>> Modified:
>>>   plog/branches/lifetype-1.2/wizard
>>> Log:
>>> Another serious bug in wizard when we perform upgrade. We
>> just drop the tmp_users_permission table in the first while loop.
>>>
>>> The users_permissions table never convert "complete" when
>> user upgrade
>>> from 1.1 :(
>>>
>>> The same question, why there are no user complain about this.
>>>
>>> Modified: plog/branches/lifetype-1.2/wizard
>>> ===================================================================
>>> --- plog/branches/lifetype-1.2/wizard	2008-04-24
>> 16:11:05 UTC (rev 6317)
>>> +++ plog/branches/lifetype-1.2/wizard	2008-04-24
>> 18:11:23 UTC (rev 6318)
>>> @@ -1537,6 +1537,7 @@
>>>             $res3 = $this->Execute( $query3, $this->page,
>> $this->itemsPerPage );
>>>             if( $res3->RecordCount() == 0 ) {
>>> 				$this->message .= "No more
>> records to process";
>>> +				$this->Execute("DROP TABLE
>>> +".Db::getPrefix()."tmp_users_permissions");
>>> 				return( true );
>>> 			}
>>>
>>> @@ -1563,12 +1564,12 @@
>>> 						}
>>> 					}
>>> 				}
>>> +
>>> +				$this->updatedRecords++;
>>>             }
>>>
>>>             $this->message .= "{$this->updatedRecords}
>> users updated
>>> (".$this->getPercentProcessed()."%%)<br/>";
>>>
>>> -            $this->Execute("DROP TABLE
>> ".Db::getPrefix()."tmp_users_permissions");
>>> -
>>>             return true;
>>>         }
>>>     }
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>
>>
>> --
>> Jon Daley
>> http://jon.limedaley.com/
>>
>> You can tell a lot about a fellow's character by his way of
>> eating jellybeans.
>> -- Ronald Reagan
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

The first 90% of the code accounts for the first 90% of the
development time.  The remaining 10% of the code accounts for
the other 90% of the development time.
-- Tom Cargill


More information about the pLog-svn mailing list