[pLog-svn] r3169 - plog/trunk
Mark Wu
markplace at gmail.com
Fri Mar 31 08:31:15 GMT 2006
Hi Oscar:
If we use data disctionary to do the upgrade stuff, is that mean the
"changes_10_11.properties.php " is no use any more..?
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> mark at devel.lifetype.net
> Sent: Friday, March 31, 2006 4:08 PM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r3169 - plog/trunk
>
> Author: mark
> Date: 2006-03-31 08:07:56 +0000 (Fri, 31 Mar 2006) New Revision: 3169
>
> Modified:
> plog/trunk/wizard.php
> Log:
> Now, the upgrade works ..
>
> Modified: plog/trunk/wizard.php
> ===================================================================
> --- plog/trunk/wizard.php 2006-03-31 08:07:26 UTC (rev 3168)
> +++ plog/trunk/wizard.php 2006-03-31 08:07:56 UTC (rev 3169)
> @@ -1117,20 +1117,20 @@
> // ---
> $dict = NewDataDictionary( $this->_db );
> $errors = false;
> - foreach( $Changes as $name => $change ) {
> + foreach( $Tables as $name => $table ) {
> $errorMessage = "";
> $upperName = $dict->upperName;
> - $changeSchema = $change["schema"];
> - if ( isset( $change["options"] ) )
> + $tableSchema = $table["schema"];
> + if ( isset( $table["options"] ) )
> {
> - $changeOptions = $change["options"];
> - $options = array ( $upperName =>
> $changeOptions );
> + $tableOptions = $table["options"];
> + $options = array ( $upperName =>
> $tableOptions );
> } else {
> $options = array ();
> }
>
> // generate the code with the changes for the table
> - $sqlarray = $dict->ChangeTableSQL(
> $this->_dbPrefix.$name, $changeSchema, $options );
> + $sqlarray = $dict->ChangeTableSQL(
> + $this->_dbPrefix.$name, $tableSchema, $options );
>
> //print("<hr/><pre>");
> foreach( $sqlarray as $sql ) {
>
> _______________________________________________
> 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