Primary key for characters SQL table must be charId.

This commit is contained in:
MobiusDevelopment 2020-09-16 11:09:23 +00:00
parent f27afeb018
commit b3ad481d97
2 changed files with 2 additions and 2 deletions

View File

@ -85,6 +85,6 @@ CREATE TABLE IF NOT EXISTS characters (
first_log INT DEFAULT 1, first_log INT DEFAULT 1,
aio decimal(1,0) NOT NULL DEFAULT 0, aio decimal(1,0) NOT NULL DEFAULT 0,
aio_end decimal(20,0) NOT NULL DEFAULT 0, aio_end decimal(20,0) NOT NULL DEFAULT 0,
PRIMARY KEY (obj_Id), PRIMARY KEY (charId),
KEY `clanid` (`clanid`) KEY `clanid` (`clanid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@ -85,6 +85,6 @@ CREATE TABLE IF NOT EXISTS characters (
first_log INT DEFAULT 1, first_log INT DEFAULT 1,
aio decimal(1,0) NOT NULL DEFAULT 0, aio decimal(1,0) NOT NULL DEFAULT 0,
aio_end decimal(20,0) NOT NULL DEFAULT 0, aio_end decimal(20,0) NOT NULL DEFAULT 0,
PRIMARY KEY (obj_Id), PRIMARY KEY (charId),
KEY `clanid` (`clanid`) KEY `clanid` (`clanid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;