commit | author | age
|
8dcf97
|
1 |
ALTER TABLE `mail_user` |
TB |
2 |
CHANGE `uid` `uid` int(11) NOT NULL DEFAULT '5000', |
|
3 |
CHANGE `gid` `gid` int(11) NOT NULL DEFAULT '5000'; |
|
4 |
|
|
5 |
ALTER TABLE `mail_user` |
|
6 |
ADD COLUMN `sender_cc` varchar(255) NOT NULL DEFAULT '' AFTER `cc`; |
|
7 |
|
|
8 |
ALTER TABLE `client_template` ADD `default_mailserver` INT(11) NOT NULL DEFAULT 1; |
|
9 |
ALTER TABLE `client_template` ADD `default_webserver` INT(11) NOT NULL DEFAULT 1; |
|
10 |
ALTER TABLE `client_template` ADD `default_dnsserver` INT(11) NOT NULL DEFAULT 1; |
|
11 |
ALTER TABLE `client_template` ADD `default_slave_dnsserver` INT(11) NOT NULL DEFAULT 1; |
|
12 |
ALTER TABLE `client_template` ADD `default_dbserver` INT(11) NOT NULL DEFAULT 1; |
|
13 |
ALTER TABLE `client_template` |
|
14 |
ADD COLUMN `default_xmppserver` int(11) unsigned NOT NULL DEFAULT '1', |
|
15 |
ADD COLUMN `xmpp_servers` blob, |
|
16 |
ADD COLUMN `limit_xmpp_domain` int(11) NOT NULL DEFAULT '-1', |
|
17 |
ADD COLUMN `limit_xmpp_user` int(11) NOT NULL DEFAULT '-1', |
|
18 |
ADD COLUMN `limit_xmpp_muc` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
19 |
ADD COLUMN `limit_xmpp_anon` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
20 |
ADD COLUMN `limit_xmpp_vjud` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
21 |
ADD COLUMN `limit_xmpp_proxy` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
22 |
ADD COLUMN `limit_xmpp_status` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
23 |
ADD COLUMN `limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
24 |
ADD COLUMN `limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n'; |
|
25 |
|
|
26 |
ALTER TABLE `client` ADD `contact_firstname` VARCHAR( 64 ) NOT NULL DEFAULT '' AFTER `gender`; |
|
27 |
|
|
28 |
UPDATE `dns_template` SET `fields` = 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM,DNSSEC' WHERE `dns_template`.`template_id` =1; |
|
29 |
UPDATE `dns_template` SET `template` = '[ZONE] |
|
30 |
origin={DOMAIN}. |
|
31 |
ns={NS1}. |
|
32 |
mbox={EMAIL}. |
|
33 |
refresh=7200 |
|
34 |
retry=540 |
|
35 |
expire=604800 |
|
36 |
minimum=3600 |
|
37 |
ttl=3600 |
|
38 |
|
|
39 |
[DNS_RECORDS] |
|
40 |
A|{DOMAIN}.|{IP}|0|3600 |
|
41 |
A|www|{IP}|0|3600 |
|
42 |
A|mail|{IP}|0|3600 |
|
43 |
NS|{DOMAIN}.|{NS1}.|0|3600 |
|
44 |
NS|{DOMAIN}.|{NS2}.|0|3600 |
|
45 |
MX|{DOMAIN}.|mail.{DOMAIN}.|10|3600 |
|
46 |
TXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600' WHERE `dns_template`.`template_id` = 1; |
|
47 |
|
|
48 |
ALTER TABLE `sys_user` ADD `lost_password_function` TINYINT(1) NOT NULL DEFAULT '1' ; |
|
49 |
ALTER TABLE `mail_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT ''; |
|
50 |
ALTER TABLE `web_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT ''; |
|
51 |
|
|
52 |
ALTER TABLE `sys_datalog` ADD INDEX `dbtable` (`dbtable` (25), `dbidx` (25)), ADD INDEX (`action`); |
|
53 |
ALTER TABLE `mail_user` ADD `greylisting` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `postfix`; |
|
54 |
ALTER TABLE `mail_user` ADD `maildir_format` varchar(255) NOT NULL default 'maildir' AFTER `maildir`; |
|
55 |
ALTER TABLE `mail_forwarding` ADD `greylisting` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `active`; |
|
56 |
|
|
57 |
ALTER TABLE `openvz_ip` CHANGE `ip_address` `ip_address` VARCHAR(39) DEFAULT NULL; |
|
58 |
|
|
59 |
-- XMPP Support |
|
60 |
|
|
61 |
ALTER TABLE `server` ADD COLUMN `xmpp_server` tinyint(1) NOT NULL default '0' AFTER `firewall_server`; |
|
62 |
|
|
63 |
ALTER TABLE `client` |
|
64 |
ADD COLUMN `default_xmppserver` int(11) unsigned NOT NULL DEFAULT '1', |
|
65 |
ADD COLUMN `xmpp_servers` blob, |
|
66 |
ADD COLUMN `limit_xmpp_domain` int(11) NOT NULL DEFAULT '-1', |
|
67 |
ADD COLUMN `limit_xmpp_user` int(11) NOT NULL DEFAULT '-1', |
|
68 |
ADD COLUMN `limit_xmpp_muc` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
69 |
ADD COLUMN `limit_xmpp_anon` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
70 |
ADD COLUMN `limit_xmpp_auth_options` varchar(255) NOT NULL DEFAULT 'plain,hashed,isp', |
|
71 |
ADD COLUMN `limit_xmpp_vjud` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
72 |
ADD COLUMN `limit_xmpp_proxy` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
73 |
ADD COLUMN `limit_xmpp_status` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
74 |
ADD COLUMN `limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
75 |
ADD COLUMN `limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n'; |
|
76 |
|
|
77 |
|
|
78 |
CREATE TABLE `xmpp_domain` ( |
|
79 |
`domain_id` int(11) unsigned NOT NULL auto_increment, |
|
80 |
`sys_userid` int(11) unsigned NOT NULL default '0', |
|
81 |
`sys_groupid` int(11) unsigned NOT NULL default '0', |
|
82 |
`sys_perm_user` varchar(5) NOT NULL default '', |
|
83 |
`sys_perm_group` varchar(5) NOT NULL default '', |
|
84 |
`sys_perm_other` varchar(5) NOT NULL default '', |
|
85 |
`server_id` int(11) unsigned NOT NULL default '0', |
|
86 |
`domain` varchar(255) NOT NULL default '', |
|
87 |
|
|
88 |
`management_method` ENUM( 'normal', 'maildomain' ) NOT NULL default 'normal', |
|
89 |
`public_registration` ENUM( 'n', 'y' ) NOT NULL default 'n', |
|
90 |
`registration_url` varchar(255) NOT NULL DEFAULT '', |
|
91 |
`registration_message` varchar(255) NOT NULL DEFAULT '', |
|
92 |
`domain_admins` text, |
|
93 |
|
|
94 |
`use_pubsub` enum('n','y') NOT NULL DEFAULT 'n', |
|
95 |
`use_proxy` enum('n','y') NOT NULL DEFAULT 'n', |
|
96 |
`use_anon_host` enum('n','y') NOT NULL DEFAULT 'n', |
|
97 |
|
|
98 |
`use_vjud` enum('n','y') NOT NULL DEFAULT 'n', |
|
99 |
`vjud_opt_mode` enum('in', 'out') NOT NULL DEFAULT 'in', |
|
100 |
|
|
101 |
`use_muc_host` enum('n','y') NOT NULL DEFAULT 'n', |
|
102 |
`muc_name` varchar(30) NOT NULL DEFAULT '', |
|
103 |
`muc_restrict_room_creation` enum('n', 'y', 'm') NOT NULL DEFAULT 'm', |
|
104 |
`muc_admins` text, |
|
105 |
`use_pastebin` enum('n','y') NOT NULL DEFAULT 'n', |
|
106 |
`pastebin_expire_after` int(3) NOT NULL DEFAULT 48, |
|
107 |
`pastebin_trigger` varchar(10) NOT NULL DEFAULT '!paste', |
|
108 |
`use_http_archive` enum('n','y') NOT NULL DEFAULT 'n', |
|
109 |
`http_archive_show_join` enum('n', 'y') NOT NULL DEFAULT 'n', |
|
110 |
`http_archive_show_status` enum('n', 'y') NOT NULL DEFAULT 'n', |
|
111 |
`use_status_host` enum('n','y') NOT NULL DEFAULT 'n', |
|
112 |
|
|
113 |
`ssl_state` varchar(255) NULL, |
|
114 |
`ssl_locality` varchar(255) NULL, |
|
115 |
`ssl_organisation` varchar(255) NULL, |
|
116 |
`ssl_organisation_unit` varchar(255) NULL, |
|
117 |
`ssl_country` varchar(255) NULL, |
|
118 |
`ssl_email` varchar(255) NULL, |
|
119 |
`ssl_request` mediumtext NULL, |
|
120 |
`ssl_cert` mediumtext NULL, |
|
121 |
`ssl_bundle` mediumtext NULL, |
|
122 |
`ssl_key` mediumtext NULL, |
|
123 |
`ssl_action` varchar(16) NULL, |
|
124 |
|
|
125 |
`active` enum('n','y') NOT NULL DEFAULT 'n', |
|
126 |
PRIMARY KEY (`domain_id`), |
|
127 |
KEY `server_id` (`server_id`,`domain`), |
|
128 |
KEY `domain_active` (`domain`,`active`) |
|
129 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
|
130 |
|
|
131 |
-- |
|
132 |
-- Table structure for table `xmpp_user` |
|
133 |
-- |
|
134 |
|
|
135 |
CREATE TABLE `xmpp_user` ( |
|
136 |
`xmppuser_id` int(11) unsigned NOT NULL auto_increment, |
|
137 |
`sys_userid` int(11) unsigned NOT NULL default '0', |
|
138 |
`sys_groupid` int(11) unsigned NOT NULL default '0', |
|
139 |
`sys_perm_user` varchar(5) NOT NULL default '', |
|
140 |
`sys_perm_group` varchar(5) NOT NULL default '', |
|
141 |
`sys_perm_other` varchar(5) NOT NULL default '', |
|
142 |
`server_id` int(11) unsigned NOT NULL default '0', |
|
143 |
`jid` varchar(255) NOT NULL default '', |
|
144 |
`password` varchar(255) NOT NULL default '', |
|
145 |
`active` enum('n','y') NOT NULL DEFAULT 'n', |
|
146 |
PRIMARY KEY (`xmppuser_id`), |
|
147 |
KEY `server_id` (`server_id`,`jid`), |
|
148 |
KEY `jid_active` (`jid`,`active`) |
|
149 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
|
150 |
|
|
151 |
-- -------------------------------------------------------- |
|
152 |
|
|
153 |
ALTER TABLE `sys_ini` ADD `default_logo` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , ADD `custom_logo` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; |
d0e9f8
|
154 |
UPDATE `sys_ini` SET `default_logo` = 'data:image/png;base64,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' WHERE `sys_ini`.`sysini_id` = 1; |
8dcf97
|
155 |
|
TB |
156 |
ALTER TABLE `directive_snippets` ADD `required_php_snippets` VARCHAR(255) NOT NULL DEFAULT '' AFTER `customer_viewable`; |
|
157 |
ALTER TABLE `dns_rr` CHANGE `ttl` `ttl` INT(11) UNSIGNED NOT NULL DEFAULT '3600'; |
|
158 |
ALTER TABLE `dns_soa` CHANGE `minimum` `minimum` INT(11) UNSIGNED NOT NULL DEFAULT '3600', CHANGE `ttl` `ttl` INT(11) UNSIGNED NOT NULL DEFAULT '3600'; |
|
159 |
ALTER TABLE `client` CHANGE `web_php_options` `web_php_options` VARCHAR(255) NOT NULL DEFAULT 'no,fast-cgi,cgi,mod,suphp,php-fpm,hhvm'; |
|
160 |
ALTER TABLE `web_domain` ADD COLUMN `enable_pagespeed` ENUM('y','n') NOT NULL DEFAULT 'n' AFTER `directive_snippets_id`; |
|
161 |
|
|
162 |
ALTER TABLE openvz_template ADD COLUMN `features` varchar(255) DEFAULT NULL AFTER `capability`; |
|
163 |
ALTER TABLE openvz_vm ADD COLUMN `features` TEXT DEFAULT NULL AFTER `capability`; |
|
164 |
ALTER TABLE openvz_template ADD COLUMN `iptables` varchar(255) DEFAULT NULL AFTER `features`; |
|
165 |
ALTER TABLE openvz_vm ADD COLUMN `iptables` TEXT DEFAULT NULL AFTER `features`; |
|
166 |
|
|
167 |
CREATE TABLE `server_ip_map` ( |
|
168 |
`server_ip_map_id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
|
169 |
`sys_userid` int(11) unsigned NOT NULL DEFAULT '0', |
|
170 |
`sys_groupid` int(11) unsigned NOT NULL DEFAULT '0', |
|
171 |
`sys_perm_user` varchar(5) DEFAULT NULL, |
|
172 |
`sys_perm_group` varchar(5) DEFAULT NULL, |
|
173 |
`sys_perm_other` varchar(5) DEFAULT NULL, |
|
174 |
`server_id` int(11) unsigned NOT NULL DEFAULT '0', |
|
175 |
`source_ip` varchar(15) DEFAULT NULL, |
|
176 |
`destination_ip` varchar(35) DEFAULT '', |
|
177 |
`active` enum('n','y') NOT NULL DEFAULT 'y', |
|
178 |
PRIMARY KEY (`server_ip_map_id`) |
|
179 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
|
180 |
|
|
181 |
ALTER TABLE `web_domain` ADD COLUMN `rewrite_to_https` ENUM('y','n') NOT NULL DEFAULT 'n' AFTER `seo_redirect`; |
|
182 |
|
|
183 |
ALTER TABLE openvz_ip ADD COLUMN `additional` VARCHAR(255) NOT NULL DEFAULT 'n'; |
|
184 |
|
|
185 |
ALTER TABLE openvz_template ADD COLUMN `custom` text; |
|
186 |
|
|
187 |
ALTER TABLE openvz_vm |
|
188 |
ADD COLUMN `bootorder` INT(11) NOT NULL DEFAULT '1' AFTER `start_boot`, |
|
189 |
ADD COLUMN `custom` text; |
|
190 |
|
|
191 |
ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFTER `ssl`; |
|
192 |
|
|
193 |
ALTER TABLE `openvz_template` CHANGE `vmguarpages` `vmguarpages` varchar(255) DEFAULT '65536:unlimited'; |
|
194 |
ALTER TABLE `openvz_template` CHANGE `privvmpages` `privvmpages` varchar(255) DEFAULT '131072:139264'; |
|
195 |
|
|
196 |
CREATE TABLE `ftp_traffic` ( |
|
197 |
`hostname` varchar(255) NOT NULL, |
|
198 |
`traffic_date` date NOT NULL, |
|
199 |
`in_bytes` bigint(32) unsigned NOT NULL, |
|
200 |
`out_bytes` bigint(32) unsigned NOT NULL, |
ab8baa
|
201 |
UNIQUE KEY (`hostname`,`traffic_date`) |
8dcf97
|
202 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
TB |
203 |
|
|
204 |
ALTER TABLE `mail_forwarding` ADD COLUMN `allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n' AFTER `active`; |
|
205 |
UPDATE `mail_forwarding` SET `allow_send_as` = 'y' WHERE `type` = 'alias'; |
|
206 |
|
|
207 |
ALTER TABLE `dns_rr` CHANGE COLUMN `type` `type` ENUM('A','AAAA','ALIAS','CNAME','DS','HINFO','LOC','MX','NAPTR','NS','PTR','RP','SRV','TXT','TLSA','DNSKEY') NULL DEFAULT NULL AFTER `name`; |
|
208 |
|
|
209 |
ALTER TABLE `dns_soa` |
|
210 |
ADD COLUMN `dnssec_initialized` ENUM('Y','N') NOT NULL DEFAULT 'N', |
|
211 |
ADD COLUMN `dnssec_wanted` ENUM('Y','N') NOT NULL DEFAULT 'N', |
|
212 |
ADD COLUMN `dnssec_last_signed` BIGINT NOT NULL DEFAULT '0', |
|
213 |
ADD COLUMN `dnssec_info` TEXT NULL; |
|
214 |
|
|
215 |
ALTER TABLE `client` ADD COLUMN `limit_ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFTER `limit_ssl`; |
|
216 |
ALTER TABLE `client_template` ADD COLUMN `limit_ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFTER `limit_ssl`; |
|
217 |
ALTER TABLE `client` ADD COLUMN `limit_directive_snippets` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `limit_backup`; |
|
218 |
ALTER TABLE `client_template` ADD COLUMN `limit_directive_snippets` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n' AFTER `limit_backup`; |
|
219 |
|
|
220 |
ALTER TABLE `sys_user` |
|
221 |
ADD COLUMN `lost_password_hash` VARCHAR(50) NOT NULL DEFAULT '', |
|
222 |
ADD COLUMN `lost_password_reqtime` DATETIME NULL default NULL; |
|
223 |
|
|
224 |
ALTER TABLE `web_database` ADD COLUMN `quota_exceeded` enum('n','y') NOT NULL DEFAULT 'n' AFTER `database_quota`; |
|
225 |
|
|
226 |
ALTER TABLE `client` ADD COLUMN `limit_database_user` int(11) NOT NULL DEFAULT '-1' after limit_database; |
|
227 |
ALTER TABLE `client_template` ADD COLUMN `limit_database_user` int(11) NOT NULL DEFAULT '-1' after limit_database; |
|
228 |
ALTER TABLE `client` CHANGE `customer_no_template` `customer_no_template` VARCHAR(255) NULL DEFAULT 'R[CLIENTID]C[CUSTOMER_NO]'; |
|
229 |
|
|
230 |
ALTER TABLE `client` CHANGE `added_date` `added_date` DATE NULL DEFAULT NULL; |
|
231 |
ALTER TABLE `ftp_user` CHANGE `expires` `expires` DATETIME NULL DEFAULT NULL; |
|
232 |
ALTER TABLE `mail_user` CHANGE `autoresponder_start_date` `autoresponder_start_date` DATETIME NULL DEFAULT NULL; |
|
233 |
ALTER TABLE `mail_user` CHANGE `autoresponder_end_date` `autoresponder_end_date` DATETIME NULL DEFAULT NULL; |
|
234 |
ALTER TABLE `openvz_traffic` CHANGE `traffic_date` `traffic_date` DATE NULL DEFAULT NULL; |
|
235 |
ALTER TABLE `openvz_vm` CHANGE `active_until_date` `active_until_date` DATE NULL DEFAULT NULL; |
|
236 |
ALTER TABLE `sys_session` CHANGE `date_created` `date_created` DATETIME NULL DEFAULT NULL; |
|
237 |
ALTER TABLE `sys_session` CHANGE `last_updated` `last_updated` DATETIME NULL DEFAULT NULL; |
|
238 |
ALTER TABLE `web_domain` CHANGE `added_date` `added_date` DATE NULL DEFAULT NULL; |
|
239 |
ALTER TABLE `web_traffic` CHANGE `traffic_date` `traffic_date` DATE NULL DEFAULT NULL; |
|
240 |
|
|
241 |
UPDATE `client` SET `added_date` = NULL WHERE `added_date` = '0000-00-00'; |
|
242 |
UPDATE `ftp_user` SET `expires` = NULL WHERE `expires` = '0000-00-00 00:00:00'; |
|
243 |
UPDATE `mail_user` SET `autoresponder_start_date` = NULL WHERE `autoresponder_start_date` = '0000-00-00 00:00:00'; |
|
244 |
UPDATE `mail_user` SET `autoresponder_end_date` = NULL WHERE `autoresponder_end_date` = '0000-00-00 00:00:00'; |
|
245 |
UPDATE `openvz_traffic` SET `traffic_date` = NULL WHERE `traffic_date` = '0000-00-00'; |
|
246 |
UPDATE `openvz_vm` SET `active_until_date` = NULL WHERE `active_until_date` = '0000-00-00'; |
|
247 |
UPDATE `sys_session` SET `date_created` = NULL WHERE `date_created` = '0000-00-00 00:00:00'; |
|
248 |
UPDATE `sys_session` SET `last_updated` = NULL WHERE `last_updated` = '0000-00-00 00:00:00'; |
|
249 |
UPDATE `web_domain` SET `added_date` = NULL WHERE `added_date` = '0000-00-00'; |
|
250 |
UPDATE `web_traffic` SET `traffic_date` = NULL WHERE `traffic_date` = '0000-00-00'; |
|
251 |
ALTER TABLE `web_domain` ADD `http_port` INT NOT NULL DEFAULT '80' , ADD `https_port` INT NOT NULL DEFAULT '443' ; |