Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 12-29-2010, 03:01 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by Fasthand View Post
can we change db rules for no duplicate or if exist update instead of default adding ?
char_id is the primary key for the guild_members table. There should be no way MySQL will allow duplicate entries:
Code:
mysql> describe guild_members;
+----------------+-----------------------+------+-----+---------+-------+
| Field          | Type                  | Null | Key | Default | Extra |
+----------------+-----------------------+------+-----+---------+-------+
| char_id        | int(11)               | NO   | PRI | 0       |       |
| guild_id       | mediumint(8) unsigned | NO   |     | 0       |       |
| rank           | tinyint(3) unsigned   | NO   |     | 0       |       |
| tribute_enable | tinyint(3) unsigned   | NO   |     | 0       |       |
| total_tribute  | int(10) unsigned      | NO   |     | 0       |       |
| last_tribute   | int(10) unsigned      | NO   |     | 0       |       |
| banker         | tinyint(3) unsigned   | NO   |     | 0       |       |
| public_note    | text                  | NO   |     | NULL    |       |
| alt            | tinyint(3) unsigned   | NO   |     | 0       |       |
+----------------+-----------------------+------+-----+---------+-------+
9 rows in set (0.00 sec)
Code:
mysql> insert into guild_members(`char_id`) values(1234);
Query OK, 1 row affected, 1 warning (0.00 sec)

mysql> insert into guild_members(`char_id`) values(1234);
ERROR 1062 (23000): Duplicate entry '1234' for key 1
EDIT: Must be something to do with changes required for bots. I see this in bots.sql
Code:
ALTER TABLE `guild_members` DROP PRIMARY KEY;

Last edited by Derision; 12-29-2010 at 03:10 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:16 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3