Re: moving forward: thanks for feedback

From: Date: Fri, 29 Sep 2006 05:39:17 +0000
Subject: Re: moving forward: thanks for feedback
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44171@lists.php.net to get a copy of this message
Brett Bieber wrote:
The text fields with no length needed to be changed to clobs with no default value. Of those text fields, only one was indexed... which I modified to index 255. Also looks like MDB2_Schema doesn't like CURRENT_TIMESTAMP for a default value, nor 'releases' or 'order.' I'm not sure if there are options for quoting field names for the creation statements, but attached is what I had to do to get MDB2_Schema to successfully create from the xml file. The largest issues were field names I had to modify to get MDB2_Schema to create.... order -> ordering and release->release_v
1) CURRENT_TIMESTAMP Someone needs to sit down and write code to add a trigger for this case. MySQL unfortunately only supports CURRENT_TIMESTAMP on timestamp and not on datetime fields (which are more portable). 2) reserved words Change those names in the application. Really its a good idea! Otherwise set the "quote_identifier" option to true. regards, Lukas

« previous php.pear.dev (#44171) next »