From 5aa67a4b49b6cfdcb45203c72a5671b163216313 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 3 Aug 2018 11:42:25 -0300 Subject: This will revert the need of santime - the brute force way. --- sql-files/main.sql | 6 +++--- sql-files/upgrades/2018-08-03--11-37.sql | 24 ++++++++++++++++++++++++ sql-files/upgrades/index.txt | 1 + 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 sql-files/upgrades/2018-08-03--11-37.sql (limited to 'sql-files') diff --git a/sql-files/main.sql b/sql-files/main.sql index d1c6364c6..2d4de5237 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -795,9 +795,9 @@ CREATE TABLE IF NOT EXISTS `quest` ( `quest_id` INT(10) UNSIGNED NOT NULL, `state` ENUM('0','1','2') NOT NULL DEFAULT '0', `time` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `count1` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', - `count2` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', - `count3` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', + `count1` INT(11) UNSIGNED NOT NULL DEFAULT '0', + `count2` INT(11) UNSIGNED NOT NULL DEFAULT '0', + `count3` INT(11) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`char_id`,`quest_id`) ) ENGINE=MyISAM; diff --git a/sql-files/upgrades/2018-08-03--11-37.sql b/sql-files/upgrades/2018-08-03--11-37.sql new file mode 100644 index 000000000..e8908e899 --- /dev/null +++ b/sql-files/upgrades/2018-08-03--11-37.sql @@ -0,0 +1,24 @@ +#1533307076 + +-- This file is part of Hercules. +-- http://herc.ws - http://github.com/HerculesWS/Hercules +-- +-- Copyright (C) 2018 Hercules Dev Team +-- +-- Hercules is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . + +ALTER TABLE `quest` MODIFY `count1` INT(11) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `quest` MODIFY `count2` INT(11) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `quest` MODIFY `count3` INT(11) UNSIGNED NOT NULL DEFAULT '0'; +INSERT INTO `sql_updates` (`timestamp`) VALUES (1533307076); diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index 1d313a0c8..9fa87743c 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -46,3 +46,4 @@ 2018-03-10--04-06.sql 2018-06-05--12-02.sql 2018-07-24--03-23.sql +2018-08-03--11-37.sql -- cgit v1.2.3-60-g2f50