mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-06-22 07:53:58 +08:00
1.2
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
DROP TABLE IF EXISTS `dnsmgr_config`;
|
||||
CREATE TABLE `dnsmgr_config` (
|
||||
`key` varchar(32) NOT NULL,
|
||||
`value` TEXT DEFAULT NULL,
|
||||
PRIMARY KEY (`key`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO `dnsmgr_config` VALUES ('version', '1003');
|
||||
INSERT INTO `dnsmgr_config` VALUES ('notice_mail', '0');
|
||||
INSERT INTO `dnsmgr_config` VALUES ('notice_wxtpl', '0');
|
||||
INSERT INTO `dnsmgr_config` VALUES ('mail_smtp', 'smtp.qq.com');
|
||||
INSERT INTO `dnsmgr_config` VALUES ('mail_port', '465');
|
||||
|
||||
DROP TABLE IF EXISTS `dnsmgr_account`;
|
||||
CREATE TABLE `dnsmgr_account` (
|
||||
`id` int(11) unsigned NOT NULL auto_increment,
|
||||
@@ -61,3 +74,43 @@ CREATE TABLE `dnsmgr_log` (
|
||||
KEY `uid` (`uid`),
|
||||
KEY `domain` (`domain`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
DROP TABLE IF EXISTS `dnsmgr_dmtask`;
|
||||
CREATE TABLE `dnsmgr_dmtask` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`did` int(11) unsigned NOT NULL,
|
||||
`rr` varchar(128) NOT NULL,
|
||||
`recordid` varchar(60) NOT NULL,
|
||||
`type` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`main_value` varchar(128) DEFAULT NULL,
|
||||
`backup_value` varchar(128) DEFAULT NULL,
|
||||
`checktype` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`checkurl` varchar(512) DEFAULT NULL,
|
||||
`tcpport` tinyint(5) DEFAULT NULL,
|
||||
`frequency` tinyint(5) NOT NULL,
|
||||
`cycle` tinyint(5) NOT NULL DEFAULT 3,
|
||||
`timeout` tinyint(5) NOT NULL DEFAULT 2,
|
||||
`remark` varchar(100) DEFAULT NULL,
|
||||
`addtime` int(11) NOT NULL DEFAULT 0,
|
||||
`checktime` int(11) NOT NULL DEFAULT 0,
|
||||
`checknexttime` int(11) NOT NULL DEFAULT 0,
|
||||
`switchtime` int(11) NOT NULL DEFAULT 0,
|
||||
`errcount` tinyint(5) NOT NULL DEFAULT 0,
|
||||
`status` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`active` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`recordinfo` varchar(200) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `did` (`did`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
DROP TABLE IF EXISTS `dnsmgr_dmlog`;
|
||||
CREATE TABLE `dnsmgr_dmlog` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`taskid` int(11) unsigned NOT NULL,
|
||||
`action` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`errmsg` varchar(100) DEFAULT NULL,
|
||||
`date` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `taskid` (`taskid`),
|
||||
KEY `date` (`date`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user