[Err] 1067 - Invalid default value for 'level_up_date'
[Err] CREATE TABLE `mail` (
`mail_unique_id` int(11) NOT NULL,
`mail_recipient_id` int(11) NOT NULL,
`sender_name` varchar(26) NOT NULL,
`mail_title` varchar(32) NOT NULL,
`mail_message` varchar(1000) NOT NULL,
`unread` tinyint(4) NOT NULL DEFAULT '1',
`attached_item_id` int(11) NOT NULL,
`attached_kinah_count` bigint(20) NOT NULL,
`express` tinyint(4) NOT NULL DEFAULT '0',
`recieved_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`mail_unique_id`),
KEY `mail_recipient_id` (`mail_recipient_id`),
CONSTRAINT `FK_mail` FOREIGN KEY (`mail_recipient_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of mail
-- ----------------------------
-- ----------------------------
-- Table structure for `old_names`
-- ----------------------------
DROP TABLE IF EXISTS `old_names`;
CREATE TABLE `old_names` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`player_id` int(11) NOT NULL,
`old_name` varchar(50) NOT NULL,
`new_name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of old_names
-- ----------------------------
-- ----------------------------
-- Table structure for `petitions`
-- ----------------------------
DROP TABLE IF EXISTS `petitions`;
CREATE TABLE `petitions` (
`id` bigint(11) NOT NULL,
`player_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`message` text NOT NULL,
`add_data` varchar(255) DEFAULT NULL,
`time` bigint(11) NOT NULL DEFAULT '0',
`status` enum('PENDING','IN_PROGRESS','REPLIED') NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of petitions
-- ----------------------------
-- ----------------------------
-- Table structure for `players`
-- ----------------------------
DROP TABLE IF EXISTS `players`;
CREATE TABLE `players` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`account_id` int(11) NOT NULL,
`account_name` varchar(50) NOT NULL,
`exp` bigint(20) NOT NULL DEFAULT '0',
`recoverexp` bigint(20) NOT NULL DEFAULT '0',
`x` float NOT NULL,
`y` float NOT NULL,
`z` float NOT NULL,
`heading` int(11) NOT NULL,
`world_id` int(11) NOT NULL,
`world_owner` int(11) NOT NULL DEFAULT '0',
`gender` enum('MALE','FEMALE') NOT NULL,
`race` enum('ASMODIANS','ELYOS') NOT NULL,
`player_class` enum('WARRIOR','GLADIATOR','TEMPLAR','SCOUT','ASSASSIN','RANGER','MAGE','SORCERER','SPIRIT_MASTER','PRIEST','CLERIC','CHANTER','ENGINEER','GUNNER','ARTIST','BARD','RIDER','ALL') NOT NULL,
`creation_date` timestamp NULL DEFAULT NULL,
`deletion_date` timestamp NULL DEFAULT NULL,
`last_online` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`quest_expands` tinyint(1) NOT NULL DEFAULT '0',
`npc_expands` tinyint(1) NOT NULL DEFAULT '0',
`advanced_stigma_slot_size` tinyint(1) NOT NULL DEFAULT '0',
`warehouse_size` tinyint(1) NOT NULL DEFAULT '0',
`mailbox_letters` tinyint(4) unsigned NOT NULL DEFAULT '0',
`title_id` int(3) NOT NULL DEFAULT '-1',
`bonus_title_id` int(3) NOT NULL DEFAULT '-1',
`dp` int(3) NOT NULL DEFAULT '0',
`soul_sickness` tinyint(1) unsigned NOT NULL DEFAULT '0',
`reposte_energy` bigint(20) NOT NULL DEFAULT '0',
`event_exp` bigint(20) NOT NULL DEFAULT '0',
`bg_points` int(11) NOT NULL DEFAULT '0',
`online` tinyint(1) NOT NULL DEFAULT '0',
`note` text,
`mentor_flag_time` int(11) NOT NULL DEFAULT '0',
`initial_gamestats` int(11) NOT NULL DEFAULT '0',
`last_transfer_time` decimal(20,0) NOT NULL DEFAULT '0',
`fatigue` int(11) NOT NULL DEFAULT '0',
`fatigueRecover` int(11) NOT NULL DEFAULT '0',
`fatigueReset` int(11) NOT NULL DEFAULT '0',
`stamps` int(11) NOT NULL DEFAULT '0',
`last_stamp` timestamp NULL DEFAULT NULL,
`rewarded_pass` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY
[Msg] Finished - Unsuccessfully
--------------------------------------------------