www.clan-themes.co.uk :: View topic - Medal system sql error
Welcome To Clan Themes
As the board grows please remember the Search Option and we hope you find our community useful.
We also monitor Private Messages to stop members from abusing our sites system. If you are asking for assistance please provide your site link and nuke version, Thanks.
Joined: Oct 04, 2007
Last Visit: 16 May 2008
Posts: 133 Points: 3585
Medal system sql errorPosted:
Fri Feb 08, 2008 5:36 pm
every time I try to run the Tables in the SQL thats what I get
Code:
Error
SQL query:
#
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `nuke_bbmedal_user` (
`issue_id` mediumint( 8 ) NOT NULL AUTO_INCREMENT ,
`medal_id` mediumint( 8 ) NOT NULL default '',
`user_id` mediumint( 8 ) NOT NULL default '',
`issue_reason` varchar( 255 ) NOT NULL default '',
`issue_time` int( 11 ) NOT NULL default '',
PRIMARY KEY ( `issue_id` )
) TYPE = MYISAM ;
MySQL said: Documentation
#1067 - Invalid default value for 'medal_id'
and thats the current SQL
Code:
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `nuke_bbmedal` (
`medal_id` mediumint(8) NOT NULL auto_increment,
`medal_name` varchar(40) NOT NULL default '',
`medal_description` varchar(255) NOT NULL default '',
`medal_image` varchar(40) default NULL,
PRIMARY KEY (`medal_id`)
) TYPE=MyISAM;
#
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `nuke_bbmedal_user` (
`issue_id` mediumint(8) NOT NULL auto_increment,
`medal_id` mediumint(8) NOT NULL default '',
`user_id` mediumint(8) NOT NULL default '',
`issue_reason` varchar(255) NOT NULL default '',
`issue_time` int(11) NOT NULL default '',
PRIMARY KEY (`issue_id`)
) TYPE=MyISAM;
#
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `nuke_bbmedal_mod` (
`mod_id` mediumint(8) unsigned NOT NULL auto_increment,
`medal_id` mediumint(8) NOT NULL default '',
`user_id` mediumint(8) NOT NULL default '',
PRIMARY KEY (`mod_id`)
) TYPE=MyISAM;
#
#-----[ ADD SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `nuke_bbconfig` VALUES ('allow_medal_dispaly', '0');
INSERT INTO `nuke_bbconfig` VALUES ('medal_display_row', '1');
INSERT INTO `nuke_bbconfig` VALUES ('medal_display_col', '1');
INSERT INTO `nuke_bbconfig` VALUES ('medal_display_width', '');
INSERT INTO `nuke_bbconfig` VALUES ('medal_display_height', '');
INSERT INTO `nuke_bbconfig` VALUES ('medal_display_order', '');
Please help me, I really want this mod ,
Ped
Reputation: 913.3 votes: 17
Local time: 11:05 AM Location: Great British Empire
Status: Offline
3.02 posts per day Medals: 2 (View more...)
Clan Themes Theme Guru Joined: Nov 13, 2006
Last Visit: 17 May 2008
Posts: 1663 Points: 5596
Medal system sql errorPosted:
Fri Feb 08, 2008 5:52 pm
Try this, worked for me
Code:
CREATE TABLE `nuke_bbmedal_user` (
`issue_id` mediumint(8) NOT NULL auto_increment,
`medal_id` mediumint(8) NOT NULL default '0',
`user_id` mediumint(8) NOT NULL default '0',
`issue_reason` varchar(255) NOT NULL default '0',
`issue_time` int(11) NOT NULL default '0',
PRIMARY KEY (`issue_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
SELECT m.medal_id, m.medal_name, m.medal_image FROM MEDAL_TABLE m, MEDAL_USER_TABLE mu WHERE mu.user_id = '34' AND m.medal_id = mu.medal_id ORDER BY m.medal_name
Line : 1221
File : viewtopic.php
Ped
Reputation: 913.3 votes: 17
Local time: 11:05 AM Location: Great British Empire
Status: Offline
3.02 posts per day Medals: 2 (View more...)
Clan Themes Theme Guru Joined: Nov 13, 2006
Last Visit: 17 May 2008
Posts: 1663 Points: 5596
Re: Medal system sql errorPosted:
Fri Feb 08, 2008 6:50 pm
tHE TABLES BY DEFAULT OOPS CAPS
Are called nuke_
yours are called bhzclanc_nuke1_
so you need to replace them like so
Code:
CREATE TABLE `bhzclanc_nuke1_bbmedal_user` (
`issue_id` mediumint(8) NOT NULL auto_increment,
`medal_id` mediumint(8) NOT NULL default '0',
`user_id` mediumint(8) NOT NULL default '0',
`issue_reason` varchar(255) NOT NULL default '0',
`issue_time` int(11) NOT NULL default '0',
PRIMARY KEY (`issue_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
Im trying to install this myself after looking at this post, it deffinatly seems to be calling for medal_table wich does not exist. I tried replacing all the prefix nuke_bb wich diddent help, as in php admin i know for a fact that the prefix in my db is nuke_bb. I have a few other things im gona try and will post back with results tommorow after work ;) i garantee its something simple we are doing wrong blackfox.
7 Replies / 481 Views Page 1 of 1 All times are GMT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum