[pLog-svn] data dictionary works wierd in 2.0

Oscar Renalias oscar at renalias.net
Wed Jan 2 03:35:23 EST 2008


Hm, maybe there was something wrong with the code generating them.
What happens if you enable that line?

On Jan 2, 2008 10:07 AM, Mark Wu <mark.wu at markplace.net> wrote:
>
>
> Hi Oscar:
>
> Do you remember why you remove "idxs" when we create table sql???
>
> It makes our new lifetype 2.0 wizard does not create any indexes when we do
> fresh installation.
>
>  Mark
>
> *** see the codes below.
>
> ==================
>
>         function CreateTableSQL($tabname, $flds, $tableoptions=false)
>         {
>             if (!$tableoptions) $tableoptions = array();
>
>             list($lines,$pkey) = $this->_GenFields($flds, true);
>
>             $taboptions = $this->_Options($tableoptions);
>             $tabname = $this->TableName ($tabname);
>             $sql = $this->_TableSQL($tabname,$lines,$pkey,$taboptions);
>    $idxs = $this->_IndexesSQL($tabname,$flds);
>
>             $tsql = $this->_Triggers($tabname,$taboptions);
>             foreach($tsql as $s) $sql[] = $s;
>    //foreach($idxs as $i) $sql[] = $i;
>
>             return $sql;
>         }
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>


More information about the pLog-svn mailing list