Commit 4f32db9e authored by Marius Cramer's avatar Marius Cramer
Browse files

Added default sql values where missing (strict mode)

parent 9b686600
ALTER TABLE `aps_instances`
CHANGE `customer_id` `customer_id` int(4) NOT NULL DEFAULT '0',
CHANGE `package_id` `package_id` int(4) NOT NULL DEFAULT '0',
CHANGE `instance_status` `instance_status` int(4) NOT NULL DEFAULT '0';
ALTER TABLE `aps_instances_settings`
CHANGE `instance_id` `instance_id` int(4) NOT NULL DEFAULT '0',
CHANGE `name` `name` varchar(255) NOT NULL DEFAULT '',
CHANGE `value` `value` text;
ALTER TABLE `aps_packages`
CHANGE `path` `path` varchar(255) NOT NULL DEFAULT '',
CHANGE `name` `name` varchar(255) NOT NULL DEFAULT '',
CHANGE `category` `category` varchar(255) NOT NULL DEFAULT '',
CHANGE `version` `version` varchar(20) NOT NULL DEFAULT '',
CHANGE `release` `release` int(4) NOT NULL DEFAULT '0',
CHANGE `package_url` `package_url` TEXT;
ALTER TABLE `aps_settings`
CHANGE `name` `name` varchar(255) NOT NULL DEFAULT '',
CHANGE `value` `value` text;
ALTER TABLE `attempts_login`
CHANGE `ip` `ip` varchar(39) NOT NULL DEFAULT '';
ALTER TABLE `client`
CHANGE `internet` `internet` varchar(255) NOT NULL DEFAULT '',
CHANGE `mail_servers` `mail_servers` blob,
CHANGE `web_servers` `web_servers` blob,
CHANGE `db_servers` `db_servers` blob,
CHANGE `dns_servers` `dns_servers` blob,
CHANGE `template_additional` `template_additional` text;
ALTER TABLE `client_template`
CHANGE `template_name` `template_name` varchar(64) NOT NULL DEFAULT '';
ALTER TABLE `country`
CHANGE `iso` `iso` char(2) NOT NULL DEFAULT '',
CHANGE `name` `name` varchar(64) NOT NULL DEFAULT '',
CHANGE `printable_name` `printable_name` varchar(64) NOT NULL DEFAULT '';
ALTER TABLE `cron`
CHANGE `command` `command` TEXT;
ALTER TABLE `dns_rr`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `zone` `zone` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `name` `name` varchar(64) NOT NULL DEFAULT '',
CHANGE `data` `data` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `dns_slave`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `origin` `origin` varchar(255) NOT NULL DEFAULT '',
CHANGE `ns` `ns` varchar(255) NOT NULL DEFAULT '',
CHANGE `active` `active` enum('N','Y') NOT NULL DEFAULT 'N',
CHANGE `xfer` `xfer` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `dns_soa`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `origin` `origin` varchar(255) NOT NULL DEFAULT '',
CHANGE `ns` `ns` varchar(255) NOT NULL DEFAULT '',
CHANGE `mbox` `mbox` varchar(255) NOT NULL DEFAULT '',
CHANGE `active` `active` enum('N','Y') NOT NULL DEFAULT 'N',
CHANGE `xfer` `xfer` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `mail_access`
CHANGE `source` `source` varchar(255) NOT NULL DEFAULT '',
CHANGE `access` `access` varchar(255) NOT NULL DEFAULT '',
CHANGE `type` `type` set('recipient','sender','client') NOT NULL DEFAULT 'recipient';
ALTER TABLE `mail_backup`
CHANGE `server_id` `server_id` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `parent_domain_id` `parent_domain_id` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `mailuser_id` `mailuser_id` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `tstamp` `tstamp` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `filename` `filename` varchar(255) NOT NULL DEFAULT '',
CHANGE `filesize` `filesize` VARCHAR(10) NOT NULL DEFAULT '';
ALTER TABLE `mail_domain`
CHANGE `active` `active` enum('n','y') NOT NULL DEFAULT 'n';
ALTER TABLE `mail_forwarding`
CHANGE `source` `source` varchar(255) NOT NULL DEFAULT '',
CHANGE `active` `active` enum('n','y') NOT NULL DEFAULT 'n';
ALTER TABLE `mail_mailinglist`
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `domain` `domain` varchar(255) NOT NULL DEFAULT '',
CHANGE `listname` `listname` varchar(255) NOT NULL DEFAULT '',
CHANGE `email` `email` varchar(255) NOT NULL DEFAULT '',
CHANGE `password` `password` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `mail_traffic`
CHANGE `mailuser_id` `mailuser_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `month` `month` char(7) NOT NULL DEFAULT '',
CHANGE `traffic` `traffic` bigint(20) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `mail_transport`
CHANGE `transport` `transport` varchar(255) NOT NULL DEFAULT '',
CHANGE `active` `active` enum('n','y') NOT NULL DEFAULT 'n';
ALTER TABLE `mail_user`
CHANGE `login` `login` varchar(255) NOT NULL default '',
CHANGE `password` `password` varchar(255) NOT NULL default '',
CHANGE `homedir` `homedir` varchar(255) NOT NULL default '',
CHANGE `postfix` `postfix` enum('n','y') NOT NULL default 'y',
CHANGE `access` `access` enum('n','y') NOT NULL default 'y';
ALTER TABLE `monitor_data`
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL default '0',
CHANGE `type` `type` varchar(255) NOT NULL default '',
CHANGE `created` `created` int(11) unsigned NOT NULL default '0',
CHANGE `data` `data` mediumtext;
ALTER TABLE `openvz_ostemplate`
CHANGE `template_file` `template_file` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `openvz_traffic`
CHANGE `veid` `veid` int(11) NOT NULL DEFAULT '0',
CHANGE `traffic_date` `traffic_date` date NOT NULL DEFAULT '0000-00-00';
ALTER TABLE `openvz_vm`
CHANGE `veid` `veid` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `ip_address` `ip_address` varchar(255) NOT NULL DEFAULT '',
CHANGE `active_until_date` `active_until_date` date NOT NULL DEFAULT '0000-00-00',
CHANGE `capability` `capability` text,
CHANGE `config` `config` mediumtext;
ALTER TABLE `remote_session`
CHANGE `remote_session` `remote_session` varchar(64) NOT NULL DEFAULT '',
CHANGE `remote_userid` `remote_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `remote_functions` `remote_functions` text,
CHANGE `tstamp` `tstamp` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `remote_user`
CHANGE `remote_username` `remote_username` varchar(64) NOT NULL DEFAULT '',
CHANGE `remote_password` `remote_password` varchar(64) NOT NULL DEFAULT '',
CHANGE `remote_functions` `remote_functions` text;
ALTER TABLE `server`
CHANGE `config` `config` text;
ALTER TABLE `shell_user`
CHANGE `chroot` `chroot` varchar(255) NOT NULL DEFAULT '',
CHANGE `ssh_rsa` `ssh_rsa` text;
ALTER TABLE `software_package`
CHANGE `package_name` `package_name` varchar(64) NOT NULL DEFAULT '',
CHANGE `package_title` `package_title` varchar(64) NOT NULL DEFAULT '',
CHANGE `package_key` `package_key` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `software_update`
CHANGE `software_repo_id` `software_repo_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `package_name` `package_name` varchar(64) NOT NULL DEFAULT '',
CHANGE `update_url` `update_url` varchar(255) NOT NULL DEFAULT '',
CHANGE `update_md5` `update_md5` varchar(255) NOT NULL DEFAULT '',
CHANGE `update_dependencies` `update_dependencies` varchar(255) NOT NULL DEFAULT '',
CHANGE `update_title` `update_title` varchar(64) NOT NULL DEFAULT '';
ALTER TABLE `software_update_inst`
CHANGE `package_name` `package_name` varchar(64) NOT NULL DEFAULT '',
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `spamfilter_policy`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '';
ALTER TABLE `spamfilter_users`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `email` `email` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `spamfilter_wblist`
CHANGE `sys_userid` `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_groupid` `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `sys_perm_user` `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_group` `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
CHANGE `sys_perm_other` `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `rid` `rid` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `email` `email` varchar(255) NOT NULL DEFAULT '',
CHANGE `priority` `priority` tinyint(3) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `sys_config`
CHANGE `group` `group` varchar(64) NOT NULL DEFAULT '',
CHANGE `name` `name` varchar(64) NOT NULL DEFAULT '',
CHANGE `value` `value` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `sys_cron`
CHANGE `name` `name` varchar(50) NOT NULL DEFAULT '';
ALTER TABLE `sys_datalog`
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `data` `data` longtext;
ALTER TABLE `sys_group`
CHANGE `description` `description` text;
ALTER TABLE `sys_ini`
CHANGE `config` `config` longtext;
ALTER TABLE `sys_log`
CHANGE `tstamp` `tstamp` int(11) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `sys_remoteaction`
CHANGE `server_id` `server_id` int(11) unsigned NOT NULL DEFAULT '0',
CHANGE `tstamp` `tstamp` int(11) NOT NULL DEFAULT '0',
CHANGE `action_type` `action_type` varchar(20) NOT NULL DEFAULT '',
CHANGE `action_param` `action_param` mediumtext,
CHANGE `action_state` `action_state` enum('pending','ok','warning','error') NOT NULL DEFAULT 'pending',
CHANGE `response` `response` mediumtext;
ALTER TABLE `sys_theme`
CHANGE `tpl_name` `tpl_name` varchar(32) NOT NULL DEFAULT '',
CHANGE `username` `username` varchar(64) NOT NULL DEFAULT '',
CHANGE `logo_url` `logo_url` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `sys_user`
CHANGE `groups` `groups` TEXT;
ALTER TABLE `web_backup`
CHANGE `server_id` `server_id` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `parent_domain_id` `parent_domain_id` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `tstamp` `tstamp` int(10) unsigned NOT NULL DEFAULT '0',
CHANGE `filename` `filename` varchar(255) NOT NULL DEFAULT '',
CHANGE `filesize` `filesize` VARCHAR(10) NOT NULL DEFAULT '';
ALTER TABLE `web_database`
CHANGE `remote_ips` `remote_ips` text;
ALTER TABLE `web_traffic`
CHANGE `hostname` `hostname` varchar(255) NOT NULL DEFAULT '',
CHANGE `traffic_date` `traffic_date` date NOT NULL DEFAULT '0000-00-00';
...@@ -65,9 +65,9 @@ CREATE TABLE IF NOT EXISTS `aps_instances` ( ...@@ -65,9 +65,9 @@ CREATE TABLE IF NOT EXISTS `aps_instances` (
`sys_perm_group` varchar(5) DEFAULT NULL, `sys_perm_group` varchar(5) DEFAULT NULL,
`sys_perm_other` varchar(5) DEFAULT NULL, `sys_perm_other` varchar(5) DEFAULT NULL,
`server_id` int(11) NOT NULL DEFAULT '0', `server_id` int(11) NOT NULL DEFAULT '0',
`customer_id` int(4) NOT NULL, `customer_id` int(4) NOT NULL DEFAULT '0',
`package_id` int(4) NOT NULL, `package_id` int(4) NOT NULL DEFAULT '0',
`instance_status` int(4) NOT NULL, `instance_status` int(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
...@@ -80,9 +80,9 @@ CREATE TABLE IF NOT EXISTS `aps_instances` ( ...@@ -80,9 +80,9 @@ CREATE TABLE IF NOT EXISTS `aps_instances` (
CREATE TABLE IF NOT EXISTS `aps_instances_settings` ( CREATE TABLE IF NOT EXISTS `aps_instances_settings` (
`id` int(4) NOT NULL AUTO_INCREMENT, `id` int(4) NOT NULL AUTO_INCREMENT,
`server_id` int(11) NOT NULL DEFAULT '0', `server_id` int(11) NOT NULL DEFAULT '0',
`instance_id` int(4) NOT NULL, `instance_id` int(4) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT '',
`value` text NOT NULL, `value` text,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
...@@ -94,12 +94,12 @@ CREATE TABLE IF NOT EXISTS `aps_instances_settings` ( ...@@ -94,12 +94,12 @@ CREATE TABLE IF NOT EXISTS `aps_instances_settings` (
CREATE TABLE IF NOT EXISTS `aps_packages` ( CREATE TABLE IF NOT EXISTS `aps_packages` (
`id` int(4) NOT NULL AUTO_INCREMENT, `id` int(4) NOT NULL AUTO_INCREMENT,
`path` varchar(255) NOT NULL, `path` varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT '',
`category` varchar(255) NOT NULL, `category` varchar(255) NOT NULL DEFAULT '',
`version` varchar(20) NOT NULL, `version` varchar(20) NOT NULL DEFAULT '',
`release` int(4) NOT NULL, `release` int(4) NOT NULL DEFAULT '0',
`package_url` TEXT NOT NULL, `package_url` TEXT,
`package_status` int(1) NOT NULL DEFAULT '2', `package_status` int(1) NOT NULL DEFAULT '2',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
...@@ -112,8 +112,8 @@ CREATE TABLE IF NOT EXISTS `aps_packages` ( ...@@ -112,8 +112,8 @@ CREATE TABLE IF NOT EXISTS `aps_packages` (
CREATE TABLE IF NOT EXISTS `aps_settings` ( CREATE TABLE IF NOT EXISTS `aps_settings` (
`id` int(4) NOT NULL AUTO_INCREMENT, `id` int(4) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT '',
`value` text NOT NULL, `value` text,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
...@@ -125,7 +125,7 @@ CREATE TABLE IF NOT EXISTS `aps_settings` ( ...@@ -125,7 +125,7 @@ CREATE TABLE IF NOT EXISTS `aps_settings` (
-- --
CREATE TABLE `attempts_login` ( CREATE TABLE `attempts_login` (
`ip` varchar(39) NOT NULL, `ip` varchar(39) NOT NULL DEFAULT '',
`times` int(11) DEFAULT NULL, `times` int(11) DEFAULT NULL,
`login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP `login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
...@@ -158,7 +158,7 @@ CREATE TABLE `client` ( ...@@ -158,7 +158,7 @@ CREATE TABLE `client` (
`mobile` varchar(32) DEFAULT NULL, `mobile` varchar(32) DEFAULT NULL,
`fax` varchar(32) DEFAULT NULL, `fax` varchar(32) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL,
`internet` varchar(255) NOT NULL, `internet` varchar(255) NOT NULL DEFAULT '',
`icq` varchar(16) DEFAULT NULL, `icq` varchar(16) DEFAULT NULL,
`notes` text, `notes` text,
`bank_account_owner` varchar(255) DEFAULT NULL, `bank_account_owner` varchar(255) DEFAULT NULL,
...@@ -169,7 +169,7 @@ CREATE TABLE `client` ( ...@@ -169,7 +169,7 @@ CREATE TABLE `client` (
`bank_account_swift` varchar(255) DEFAULT NULL, `bank_account_swift` varchar(255) DEFAULT NULL,
`paypal_email` varchar(255) DEFAULT NULL, `paypal_email` varchar(255) DEFAULT NULL,
`default_mailserver` int(11) unsigned NOT NULL DEFAULT '1', `default_mailserver` int(11) unsigned NOT NULL DEFAULT '1',
`mail_servers` blob NOT NULL, `mail_servers` blob,
`limit_maildomain` int(11) NOT NULL DEFAULT '-1', `limit_maildomain` int(11) NOT NULL DEFAULT '-1',
`limit_mailbox` int(11) NOT NULL DEFAULT '-1', `limit_mailbox` int(11) NOT NULL DEFAULT '-1',
`limit_mailalias` int(11) NOT NULL DEFAULT '-1', `limit_mailalias` int(11) NOT NULL DEFAULT '-1',
...@@ -184,7 +184,7 @@ CREATE TABLE `client` ( ...@@ -184,7 +184,7 @@ CREATE TABLE `client` (
`limit_spamfilter_user` int(11) NOT NULL DEFAULT '0', `limit_spamfilter_user` int(11) NOT NULL DEFAULT '0',
`limit_spamfilter_policy` int(11) NOT NULL DEFAULT '0', `limit_spamfilter_policy` int(11) NOT NULL DEFAULT '0',
`default_webserver` int(11) unsigned NOT NULL DEFAULT '1', `default_webserver` int(11) unsigned NOT NULL DEFAULT '1',
`web_servers` blob NOT NULL, `web_servers` blob,
`limit_web_ip` text, `limit_web_ip` text,
`limit_web_domain` int(11) NOT NULL DEFAULT '-1', `limit_web_domain` int(11) NOT NULL DEFAULT '-1',
`limit_web_quota` int(11) NOT NULL DEFAULT '-1', `limit_web_quota` int(11) NOT NULL DEFAULT '-1',
...@@ -207,13 +207,13 @@ CREATE TABLE `client` ( ...@@ -207,13 +207,13 @@ CREATE TABLE `client` (
`limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'y', `limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'y',
`limit_aps` int(11) NOT NULL DEFAULT '-1', `limit_aps` int(11) NOT NULL DEFAULT '-1',
`default_dnsserver` int(11) unsigned NOT NULL DEFAULT '1', `default_dnsserver` int(11) unsigned NOT NULL DEFAULT '1',
`db_servers` blob NOT NULL, `db_servers` blob,
`limit_dns_zone` int(11) NOT NULL DEFAULT '-1', `limit_dns_zone` int(11) NOT NULL DEFAULT '-1',
`default_slave_dnsserver` int(11) unsigned NOT NULL DEFAULT '1', `default_slave_dnsserver` int(11) unsigned NOT NULL DEFAULT '1',
`limit_dns_slave_zone` int(11) NOT NULL DEFAULT '-1', `limit_dns_slave_zone` int(11) NOT NULL DEFAULT '-1',
`limit_dns_record` int(11) NOT NULL DEFAULT '-1', `limit_dns_record` int(11) NOT NULL DEFAULT '-1',
`default_dbserver` int(11) NOT NULL DEFAULT '1', `default_dbserver` int(11) NOT NULL DEFAULT '1',
`dns_servers` blob NOT NULL, `dns_servers` blob,
`limit_database` int(11) NOT NULL DEFAULT '-1', `limit_database` int(11) NOT NULL DEFAULT '-1',
`limit_database_quota` int(11) NOT NULL default '-1', `limit_database_quota` int(11) NOT NULL default '-1',
`limit_cron` int(11) NOT NULL DEFAULT '0', `limit_cron` int(11) NOT NULL DEFAULT '0',
...@@ -231,7 +231,7 @@ CREATE TABLE `client` ( ...@@ -231,7 +231,7 @@ CREATE TABLE `client` (
`language` char(2) NOT NULL DEFAULT 'en', `language` char(2) NOT NULL DEFAULT 'en',
`usertheme` varchar(32) NOT NULL DEFAULT 'default', `usertheme` varchar(32) NOT NULL DEFAULT 'default',
`template_master` int(11) unsigned NOT NULL DEFAULT '0', `template_master` int(11) unsigned NOT NULL DEFAULT '0',
`template_additional` text NOT NULL, `template_additional` text,
`created_at` bigint(20) DEFAULT NULL, `created_at` bigint(20) DEFAULT NULL,
`locked` enum('n','y') NOT NULL DEFAULT 'n', `locked` enum('n','y') NOT NULL DEFAULT 'n',
`canceled` enum('n','y') NOT NULL DEFAULT 'n', `canceled` enum('n','y') NOT NULL DEFAULT 'n',
...@@ -280,7 +280,7 @@ CREATE TABLE `client_template` ( ...@@ -280,7 +280,7 @@ CREATE TABLE `client_template` (
`sys_perm_user` varchar(5) default NULL, `sys_perm_user` varchar(5) default NULL,
`sys_perm_group` varchar(5) default NULL, `sys_perm_group` varchar(5) default NULL,
`sys_perm_other` varchar(5) default NULL, `sys_perm_other` varchar(5) default NULL,
`template_name` varchar(64) NOT NULL, `template_name` varchar(64) NOT NULL DEFAULT '',
`template_type` varchar(1) NOT NULL default 'm', `template_type` varchar(1) NOT NULL default 'm',
`limit_maildomain` int(11) NOT NULL default '-1', `limit_maildomain` int(11) NOT NULL default '-1',
`limit_mailbox` int(11) NOT NULL default '-1', `limit_mailbox` int(11) NOT NULL default '-1',
...@@ -377,9 +377,9 @@ CREATE TABLE `client_message_template` ( ...@@ -377,9 +377,9 @@ CREATE TABLE `client_message_template` (
-- --
CREATE TABLE `country` ( CREATE TABLE `country` (
`iso` char(2) NOT NULL, `iso` char(2) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL, `name` varchar(64) NOT NULL DEFAULT '',
`printable_name` varchar(64) NOT NULL, `printable_name` varchar(64) NOT NULL DEFAULT '',
`iso3` char(3) DEFAULT NULL, `iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL, `numcode` smallint(6) DEFAULT NULL,
`eu` enum('n','y') NOT NULL DEFAULT 'n', `eu` enum('n','y') NOT NULL DEFAULT 'n',
...@@ -401,7 +401,7 @@ CREATE TABLE `cron` ( ...@@ -401,7 +401,7 @@ CREATE TABLE `cron` (
`server_id` int(11) unsigned NOT NULL default '0', `server_id` int(11) unsigned NOT NULL default '0',
`parent_domain_id` int(11) unsigned NOT NULL default '0', `parent_domain_id` int(11) unsigned NOT NULL default '0',
`type` enum('url','chrooted','full') NOT NULL default 'url', `type` enum('url','chrooted','full') NOT NULL default 'url',
`command` TEXT NOT NULL, `command` TEXT,
`run_min` varchar(100) NULL, `run_min` varchar(100) NULL,
`run_hour` varchar(100) NULL, `run_hour` varchar(100) NULL,
`run_mday` varchar(100) NULL, `run_mday` varchar(100) NULL,
...@@ -440,16 +440,16 @@ CREATE TABLE IF NOT EXISTS `directive_snippets` ( ...@@ -440,16 +440,16 @@ CREATE TABLE IF NOT EXISTS `directive_snippets` (
CREATE TABLE `dns_rr` ( CREATE TABLE `dns_rr` (
`id` int(11) unsigned NOT NULL auto_increment, `id` int(11) unsigned NOT NULL auto_increment,
`sys_userid` int(11) unsigned NOT NULL, `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_groupid` int(11) unsigned NOT NULL, `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_perm_user` varchar(5) NOT NULL, `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) NOT NULL, `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
`sys_perm_other` varchar(5) NOT NULL, `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
`server_id` int(11) NOT NULL default '1', `server_id` int(11) NOT NULL default '1',
`zone` int(11) unsigned NOT NULL, `zone` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(64) NOT NULL, `name` varchar(64) NOT NULL DEFAULT '',
`type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL, `type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
`data` varchar(255) NOT NULL, `data` varchar(255) NOT NULL DEFAULT '',
`aux` int(11) unsigned NOT NULL default '0', `aux` int(11) unsigned NOT NULL default '0',
`ttl` int(11) unsigned NOT NULL default '86400', `ttl` int(11) unsigned NOT NULL default '86400',
`active` enum('N','Y') NOT NULL default 'Y', `active` enum('N','Y') NOT NULL default 'Y',
...@@ -467,16 +467,16 @@ CREATE TABLE `dns_rr` ( ...@@ -467,16 +467,16 @@ CREATE TABLE `dns_rr` (
CREATE TABLE `dns_slave` ( CREATE TABLE `dns_slave` (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`sys_userid` int(11) unsigned NOT NULL, `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_groupid` int(11) unsigned NOT NULL, `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_perm_user` varchar(5) NOT NULL, `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) NOT NULL, `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
`sys_perm_other` varchar(5) NOT NULL, `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
`server_id` int(11) NOT NULL default '1', `server_id` int(11) NOT NULL default '1',
`origin` varchar(255) NOT NULL, `origin` varchar(255) NOT NULL DEFAULT '',
`ns` varchar(255) NOT NULL, `ns` varchar(255) NOT NULL DEFAULT '',
`active` enum('N','Y') NOT NULL, `active` enum('N','Y') NOT NULL DEFAULT 'N',
`xfer` varchar(255) NOT NULL, `xfer` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `slave` (`origin`,`server_id`), UNIQUE KEY `slave` (`origin`,`server_id`),
KEY `active` (`active`) KEY `active` (`active`)
...@@ -490,23 +490,23 @@ CREATE TABLE `dns_slave` ( ...@@ -490,23 +490,23 @@ CREATE TABLE `dns_slave` (
CREATE TABLE `dns_soa` ( CREATE TABLE `dns_soa` (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`sys_userid` int(11) unsigned NOT NULL, `sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_groupid` int(11) unsigned NOT NULL, `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
`sys_perm_user` varchar(5) NOT NULL, `sys_perm_user` varchar(5) NOT NULL DEFAULT '',
`sys_perm_group` varchar(5) NOT NULL, `sys_perm_group` varchar(5) NOT NULL DEFAULT '',
`sys_perm_other` varchar(5) NOT NULL, `sys_perm_other` varchar(5) NOT NULL DEFAULT '',
`server_id` int(11) NOT NULL default '1', `server_id` int(11) NOT NULL default '1',
`origin` varchar(255) NOT NULL, `origin` varchar(255) NOT NULL DEFAULT '',
`ns` varchar(255) NOT NULL, `ns` varchar(255) NOT NULL DEFAULT '',
`mbox` varchar(255) NOT NULL, `mbox` varchar(255) NOT NULL DEFAULT '',
`serial` int(11) unsigned NOT NULL default '1', `serial` int(11) unsigned NOT NULL default '1',
`refresh` int(11) unsigned NOT NULL default '28800', `refresh` int(11) unsigned NOT NULL default '28800',
`retry` int(11) unsigned NOT NULL default '7200', `retry` int(11) unsigned NOT NULL default '7200',
`expire` int(11) unsigned NOT NULL default '604800', `expire` int(11) unsigned NOT NULL default '604800',
`minimum` int(11) unsigned NOT NULL default '86400', `minimum` int(11) unsigned NOT NULL default '86400',
`ttl` int(11) unsigned NOT NULL default '86400', `ttl` int(11) unsigned NOT NULL default '86400',
`active` enum('N','Y') NOT NULL, `active` enum('N','Y') NOT NULL DEFAULT 'N',
`xfer` varchar(255) NOT NULL, `xfer` varchar(255) NOT NULL DEFAULT '',
`also_notify` varchar(255) default NULL, `also_notify` varchar(255) default NULL,
`update_acl` varchar(255) default NULL, `update_acl` varchar(255) default NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
...@@ -678,9 +678,9 @@ CREATE TABLE `mail_access` ( ...@@ -678,9 +678,9 @@ CREATE TABLE `mail_access` (
`sys_perm_group` varchar(5) NOT NULL default '', `sys_perm_group` varchar(5) NOT NULL default '',
`sys_perm_other` varchar(5) NOT NULL default '', `sys_perm_other` varchar(5) NOT NULL default '',
`server_id` int(11) NOT NULL default '0', `server_id` int(11) NOT NULL default '0',
`source` varchar(255) NOT NULL, `source` varchar(255) NOT NULL DEFAULT '',
`access` varchar(255) NOT NULL, `access` varchar(255) NOT NULL DEFAULT '',
`type` set('recipient','sender','client') NOT NULL, `type` set('recipient','sender','client') NOT NULL DEFAULT 'recipient',
`active` enum('n','y') NOT NULL default 'y', `active` enum('n','y') NOT NULL default 'y',
PRIMARY KEY (`access_id`), PRIMARY KEY (`access_id`),
KEY `server_id` (`server_id`,`source`) KEY `server_id` (`server_id`,`source`)
...@@ -694,13 +694,13 @@ CREATE TABLE `mail_access` ( ...@@ -694,13 +694,13 @@ CREATE TABLE `mail_access` (