From aee2f6317e1c927847993801b5973d7e2e27a418 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 16 Nov 2013 16:30:11 -0200 Subject: Introducing Character Ban Support. @charban/@charunban, can temporarily block any accounts as opposed to the usual account-wide block. Special Thanks to Haruna, Yommy! Signed-off-by: shennetsind --- sql-files/main.sql | 2 ++ sql-files/upgrades/2013-11-16--07-49.sql | 3 +++ sql-files/upgrades/index.txt | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 sql-files/upgrades/2013-11-16--07-49.sql (limited to 'sql-files') diff --git a/sql-files/main.sql b/sql-files/main.sql index cd50c10fa..60b21285d 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -110,6 +110,7 @@ CREATE TABLE IF NOT EXISTS `char` ( `slotchange` SMALLINT(3) unsigned NOT NULL default '0', `char_opt` INT( 11 ) unsigned NOT NULL default '0', `font` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0', + `unban_time` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`char_id`), UNIQUE KEY `name_key` (`name`), KEY `account_id` (`account_id`), @@ -669,6 +670,7 @@ INSERT INTO `sql_updates` (`timestamp`) VALUES (1383167577); INSERT INTO `sql_updates` (`timestamp`) VALUES (1383205740); INSERT INTO `sql_updates` (`timestamp`) VALUES (1383955424); INSERT INTO `sql_updates` (`timestamp`) VALUES (1384545461); +INSERT INTO `sql_updates` (`timestamp`) VALUES (1384588175); -- -- Table structure for table `sstatus` diff --git a/sql-files/upgrades/2013-11-16--07-49.sql b/sql-files/upgrades/2013-11-16--07-49.sql new file mode 100644 index 000000000..9f4b80452 --- /dev/null +++ b/sql-files/upgrades/2013-11-16--07-49.sql @@ -0,0 +1,3 @@ +#1384588175 +ALTER TABLE `char` ADD COLUMN `unban_time` int(11) unsigned NOT NULL default '0'; +INSERT INTO `sql_updates` (`timestamp`) VALUES (1384588175); \ No newline at end of file diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index 4fed9ff9b..1e76ee41b 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -12,4 +12,5 @@ 2013-10-31--07-49.sql 2013-11-09--00-03.sql 2013-11-15--00-06.sql -2013-11-15--19-57.sql \ No newline at end of file +2013-11-15--19-57.sql +2013-11-16--07-49.sql \ No newline at end of file -- cgit v1.2.3-60-g2f50