[SOLVED] error number 6 with Private Messages

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 06:32 PM
Adaman's Avatar
Constant Pligger/Designer
Pligg Version: v9.8.2
Pligg Template: Custom
 
Join Date: Jan 2007
Location: Scotland
Posts: 101
Hi Guys,

I am getting the error 6 code with private messaging.

it is covered in this thread but the code supplied dosent seem to work with MySQL 5.

http://forums.pligg.com/general-help...umber-6-a.html

Code:
CREATE TABLE `pligg_messages` (
`idMsg` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`title` VARCHAR( 250 ) NOT NULL ,
`body` TEXT NOT NULL ,
`sender` INT( 11 ) NOT NULL DEFAULT '0',
`receiver` INT( 11 ) NOT NULL DEFAULT '0',
`senderLevel` INT( 11 ) NOT NULL DEFAULT '0',
`readed` INT( 11 ) NOT NULL DEFAULT '0',
`date` TIMESTAMP NOT NULL DEFAULT 'CURRENT_TIMESTAMP'
) TYPE = MYISAM ;
Thanks for any help

Adam

Last edited by Adaman; 08-02-2007 at 06:41 PM.
Reply With Quote
  #2 (permalink)  
Old 08-02-2007, 06:48 PM
Adaman's Avatar
Constant Pligger/Designer
Pligg Version: v9.8.2
Pligg Template: Custom
 
Join Date: Jan 2007
Location: Scotland
Posts: 101
Solved it with the code below for MYSQL 5 database's.

Code:
CREATE TABLE `pligg_messages` (
  `idMsg` int(11) NOT NULL auto_increment,
  `title` varchar(250) NOT NULL default '',
  `body` text NOT NULL,
  `sender` int(11) NOT NULL default '0',
  `receiver` int(11) NOT NULL default '0',
  `senderLevel` int(11) NOT NULL default '0',
  `readed` int(11) NOT NULL default '0',
  `date` timestamp(14) NOT NULL,
  PRIMARY KEY  (`idMsg`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
Adam
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
private messages not showing dadaas Questions and Comments 3 10-03-2011 03:13 AM
Private Messages don't show up / 9.9.0. dogmog Questions and Comments 17 10-14-2008 03:44 PM
private messages module very very slow santu_hear2u Questions and Comments 1 09-05-2008 08:36 AM
[SOLVED] Error messages on homepage guppyman Questions and Comments 2 08-14-2007 03:49 AM
private messages / rss - problem Marc Questions and Comments 0 01-12-2007 06:40 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development