warleb Posted March 25, 2007 Share Posted March 25, 2007 I am upgrading my protx payment module and got the following error. This is very strange. Can anyone assist with this at all?? It's very urgent.. Error SQL query: CREATE TABLE `protx_direct` ( `id` int( 11 ) unsigned NOT NULL AUTO_INCREMENT , `customer_id` int( 11 ) NOT NULL default '0', `order_id` int( 11 ) NOT NULL default '0', `vendortxcode` varchar( 40 ) default NULL , `txtype` varchar( 16 ) default NULL , `value` decimal( 15, 4 ) default NULL , `vpstxid` varchar( 50 ) default NULL , `status` varchar( 10 ) default NULL , `statusdetail` varchar( 100 ) default NULL , `txauthno` varchar( 10 ) default NULL , `securitykey` varchar( 10 ) default NULL , `avscv2` varchar( 50 ) default NULL , `address_result` varchar( 20 ) default NULL , `postcode_result` varchar( 20 ) default NULL , `CV2_result` varchar( 20 ) default NULL , `3DSecureStatus` varchar( 12 ) default NULL , `CAVV` varchar( 32 ) default NULL , `txtime` timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP , UNIQUE KEY `id` ( `id` ) ) ENGINE = MYISAM AUTO_INCREMENT =1 MySQL said: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, UNIQUE KEY `i I don't bother doing backups. I love the thrill of screwing it all up! Link to comment Share on other sites More sharing options...
dittones Posted March 25, 2007 Share Posted March 25, 2007 Steve, Try UNIQUE KEY id ( id ) I hope this helps... Roman dittone.com Link to comment Share on other sites More sharing options...
♥FWR Media Posted March 25, 2007 Share Posted March 25, 2007 Not a clue. I tried this on both MySQL 4.1 and 5.0.37 in STRICT mode worked fine. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.