From 25f104c50d977b3c92e68fd1a39ba79b0b3d7424 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 16 Aug 2022 17:53:56 +0200 Subject: [PATCH] Added sql upgrade file for web-server --- sql-files/upgrades/upgrade_20220816.sql | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 sql-files/upgrades/upgrade_20220816.sql diff --git a/sql-files/upgrades/upgrade_20220816.sql b/sql-files/upgrades/upgrade_20220816.sql new file mode 100644 index 0000000000..d5c952fee1 --- /dev/null +++ b/sql-files/upgrades/upgrade_20220816.sql @@ -0,0 +1,50 @@ + +-- +-- Table structure for table `guild_emblems` +-- + +CREATE TABLE IF NOT EXISTS `guild_emblems` ( + `world_name` varchar(32) NOT NULL, + `guild_id` int(11) unsigned NOT NULL, + `file_type` varchar(255) NOT NULL, + `file_data` blob, + `version` int(11) unsigned NOT NULL default '0', + PRIMARY KEY (`world_name`, `guild_id`) +) ENGINE=MyISAM; + +-- +-- Table structure for table `user_configs` +-- + +CREATE TABLE IF NOT EXISTS `user_configs` ( + `world_name` varchar(32) NOT NULL, + `account_id` int(11) unsigned NOT NULL, + `data` longtext NOT NULL, + PRIMARY KEY (`world_name`, `account_id`) +) ENGINE=MyISAM; + + +-- +-- Table structure for table `char_configs` +-- + +CREATE TABLE IF NOT EXISTS `char_configs` ( + `world_name` varchar(32) NOT NULL, + `account_id` int(11) unsigned NOT NULL, + `char_id` int(11) unsigned NOT NULL, + `data` longtext NOT NULL, + PRIMARY KEY (`world_name`, `account_id`, `char_id`) +) ENGINE=MyISAM; + +-- +-- Table structure for table `merchant_configs` +-- + +CREATE TABLE IF NOT EXISTS `merchant_configs` ( + `world_name` varchar(32) NOT NULL, + `account_id` int(11) unsigned NOT NULL, + `char_id` INT(11) UNSIGNED NOT NULL, + `store_type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0, + `data` longtext NOT NULL, + PRIMARY KEY (`world_name`, `account_id`, `char_id`) +) ENGINE=MyISAM;