• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved TFS 0.4 Error in data base -MySql

EstebanGod

New Member
Joined
Jun 18, 2014
Messages
83
Reaction score
3
Im getting this error at my console:

Sin_t_tulo.png



Anybody can help me out with the query to fix this?
 
Import right MySQL schema, the one for your server, or add the tables with a query.
Code:
CREATE TABLE `bans`
(
   `id` INT UNSIGNED NOT NULL auto_increment,
   `type` TINYINT(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion',
   `value` INT UNSIGNED NOT NULL COMMENT 'ip address (integer), player guid or account number',
   `param` INT UNSIGNED NOT NULL DEFAULT 4294967295 COMMENT 'used only for ip banishment mask (integer)',
   `active` TINYINT(1) NOT NULL DEFAULT TRUE,
   `expires` INT NOT NULL,
   `added` INT UNSIGNED NOT NULL,
   `admin_id` INT UNSIGNED NOT NULL DEFAULT 0,
   `comment` TEXT NOT NULL,
   `reason` INT UNSIGNED NOT NULL DEFAULT 0,
   `action` INT UNSIGNED NOT NULL DEFAULT 0,
   `statement` VARCHAR(255) NOT NULL DEFAULT '',
   PRIMARY KEY (`id`),
   KEY `type` (`type`, `value`),
   KEY `active` (`active`)
) ENGINE = InnoDB;

Code:
CREATE TABLE `player_depotitems`
(
   `player_id` INT NOT NULL,
   `sid` INT NOT NULL COMMENT 'any given range, eg. 0-100 is reserved for depot lockers and all above 100 will be normal items inside depots',
   `pid` INT NOT NULL DEFAULT 0,
   `itemtype` INT NOT NULL,
   `count` INT NOT NULL DEFAULT 0,
   `attributes` BLOB NOT NULL,
   KEY (`player_id`), UNIQUE (`player_id`, `sid`),
   FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;
 
Back
Top