This commit is contained in:
6
trunk/dist/sql/community/clan_introductions.sql
vendored
Normal file
6
trunk/dist/sql/community/clan_introductions.sql
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS `clan_introductions` (
|
||||
`serverId` int(8) NOT NULL,
|
||||
`clanId` int(8) NOT NULL,
|
||||
`introduction` text NOT NULL,
|
||||
PRIMARY KEY (`serverId`,`clanId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
10
trunk/dist/sql/community/comments.sql
vendored
Normal file
10
trunk/dist/sql/community/comments.sql
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE IF NOT EXISTS `comments` (
|
||||
`serverId` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_id` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_ownerid` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_date` decimal(20,0) NOT NULL DEFAULT '0',
|
||||
`comment_post_id` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_topic_id` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_forum_id` int(8) NOT NULL DEFAULT '0',
|
||||
`comment_txt` text NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
3
trunk/dist/sql/community/documentation.txt
vendored
Normal file
3
trunk/dist/sql/community/documentation.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
This directory contains tables required by the Community Server.
|
||||
|
||||
Eventually, additional SQL scripts are locates in: custom/mods/updates folders.
|
9
trunk/dist/sql/community/forums.sql
vendored
Normal file
9
trunk/dist/sql/community/forums.sql
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS `forums` (
|
||||
`serverId` int(8) NOT NULL DEFAULT '0',
|
||||
`forum_id` int(8) NOT NULL DEFAULT '0',
|
||||
`forum_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`forum_post` int(8) NOT NULL DEFAULT '0',
|
||||
`forum_type` int(8) NOT NULL DEFAULT '0',
|
||||
`forum_owner_id` int(8) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`serverId`,`forum_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
14
trunk/dist/sql/community/posts.sql
vendored
Normal file
14
trunk/dist/sql/community/posts.sql
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS `posts` (
|
||||
`serverId` int(8) NOT NULL DEFAULT '0',
|
||||
`post_id` int(8) NOT NULL DEFAULT '0',
|
||||
`post_ownerid` int(8) NOT NULL DEFAULT '0',
|
||||
`post_recipient_list` varchar(255) NOT NULL DEFAULT '0',
|
||||
`post_parent_id` int(8) NOT NULL DEFAULT '0',
|
||||
`post_date` decimal(20,0) NOT NULL DEFAULT '0',
|
||||
`post_topic_id` int(8) NOT NULL DEFAULT '0',
|
||||
`post_forum_id` int(8) NOT NULL DEFAULT '0',
|
||||
`post_txt` text NOT NULL,
|
||||
`post_title` text,
|
||||
`post_type` int(8) NOT NULL DEFAULT '0',
|
||||
`post_read_count` int(8) NOT NULL DEFAULT '0'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
6
trunk/dist/sql/community/registered_gameservers.sql
vendored
Normal file
6
trunk/dist/sql/community/registered_gameservers.sql
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS `registered_gameservers` (
|
||||
`serverId` int(11) NOT NULL DEFAULT '0',
|
||||
`hex_id` varchar(50) NOT NULL DEFAULT '',
|
||||
`host` varchar(50) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`serverId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
8
trunk/dist/sql/community/topics.sql
vendored
Normal file
8
trunk/dist/sql/community/topics.sql
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS `topics` (
|
||||
`serverId` int(8) NOT NULL DEFAULT '0',
|
||||
`topic_id` int(8) NOT NULL DEFAULT '0',
|
||||
`topic_forum_id` int(8) NOT NULL DEFAULT '0',
|
||||
`topic_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`topic_ownerid` int(8) NOT NULL DEFAULT '0',
|
||||
`topic_permissions` int(8) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
1
trunk/dist/sql/community/updates/20110316update.sql
vendored
Normal file
1
trunk/dist/sql/community/updates/20110316update.sql
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `posts` MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0';
|
6
trunk/dist/sql/community/updates/20110729update.sql
vendored
Normal file
6
trunk/dist/sql/community/updates/20110729update.sql
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE `clan_introductions` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `comments` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `forums` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `registered_gameservers` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `posts` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `topics` ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
6
trunk/dist/sql/community/updates/cs_optimize.sql
vendored
Normal file
6
trunk/dist/sql/community/updates/cs_optimize.sql
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
OPTIMIZE TABLE clan_introductions;
|
||||
OPTIMIZE TABLE comments;
|
||||
OPTIMIZE TABLE forums;
|
||||
OPTIMIZE TABLE registered_gameservers;
|
||||
OPTIMIZE TABLE posts;
|
||||
OPTIMIZE TABLE topics;
|
6
trunk/dist/sql/community/updates/documentation.txt
vendored
Normal file
6
trunk/dist/sql/community/updates/documentation.txt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
Any SQL Update should be named like this:
|
||||
|
||||
YYYYMMDDupdate.sql
|
||||
|
||||
For example, at day 5 and January 1 from 2008, then file should be named:
|
||||
20080105update.sql
|
Reference in New Issue
Block a user