summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/logs.sql8
-rw-r--r--sql-files/upgrade_svn11388.sql5
2 files changed, 9 insertions, 4 deletions
diff --git a/sql-files/logs.sql b/sql-files/logs.sql
index e6efe7438..0217c4fea 100644
--- a/sql-files/logs.sql
+++ b/sql-files/logs.sql
@@ -43,7 +43,7 @@ CREATE TABLE `branchlog` (
`branch_date` datetime NOT NULL default '0000-00-00 00:00:00',
`account_id` int(11) NOT NULL default '0',
`char_id` int(11) NOT NULL default '0',
- `char_name` varchar(30) NOT NULL default '',
+ `char_name` varchar(25) NOT NULL default '',
`map` varchar(11) NOT NULL default '',
PRIMARY KEY (`branch_id`),
INDEX (`account_id`),
@@ -70,9 +70,9 @@ CREATE TABLE `atcommandlog` (
`atcommand_date` datetime NOT NULL default '0000-00-00 00:00:00',
`account_id` int(11) unsigned NOT NULL default '0',
`char_id` int(11) unsigned NOT NULL default '0',
- `char_name` varchar(30) NOT NULL default '',
+ `char_name` varchar(25) NOT NULL default '',
`map` varchar(11) NOT NULL default '',
- `command` varchar(50) NOT NULL default '',
+ `command` varchar(255) NOT NULL default '',
PRIMARY KEY (`atcommand_id`),
INDEX (`account_id`),
INDEX (`char_id`)
@@ -85,7 +85,7 @@ CREATE TABLE `npclog` (
`npc_date` datetime NOT NULL default '0000-00-00 00:00:00',
`account_id` int(11) unsigned NOT NULL default '0',
`char_id` int(11) unsigned NOT NULL default '0',
- `char_name` varchar(30) NOT NULL default '',
+ `char_name` varchar(25) NOT NULL default '',
`map` varchar(11) NOT NULL default '',
`mes` varchar(255) NOT NULL default '',
PRIMARY KEY (`npc_id`),
diff --git a/sql-files/upgrade_svn11388.sql b/sql-files/upgrade_svn11388.sql
new file mode 100644
index 000000000..5393ca861
--- /dev/null
+++ b/sql-files/upgrade_svn11388.sql
@@ -0,0 +1,5 @@
+ALTER TABLE `atcommandlog` CHANGE `command` `command` VARCHAR( 255 ) NOT NULL;
+ALTER TABLE `atcommandlog` CHANGE `char_name` `char_name` VARCHAR( 25 ) NOT NULL;
+ALTER TABLE `branchlog` CHANGE `char_name` `char_name` VARCHAR( 25 ) NOT NULL;
+ALTER TABLE `npclog` CHANGE `char_name` `char_name` VARCHAR( 25 ) NOT NULL;
+ \ No newline at end of file