|
|
@ -2,12 +2,6 @@ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
|
|
|
START TRANSACTION; |
|
|
|
START TRANSACTION; |
|
|
|
SET time_zone = "+00:00"; |
|
|
|
SET time_zone = "+00:00"; |
|
|
|
|
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|
|
|
|
|
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|
|
|
|
|
|
|
/*!40101 SET NAMES utf8mb4 */; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hosts` ( |
|
|
|
CREATE TABLE `hosts` ( |
|
|
|
`host` varchar(67) NOT NULL, |
|
|
|
`host` varchar(67) NOT NULL, |
|
|
|
`base64` varchar(616) NOT NULL, |
|
|
|
`base64` varchar(616) NOT NULL, |
|
|
@ -16,7 +10,10 @@ CREATE TABLE `hosts` ( |
|
|
|
`add_date` timestamp NOT NULL DEFAULT current_timestamp(), |
|
|
|
`add_date` timestamp NOT NULL DEFAULT current_timestamp(), |
|
|
|
`last_seen` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', |
|
|
|
`last_seen` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', |
|
|
|
`approved` tinyint(1) NOT NULL DEFAULT 0, |
|
|
|
`approved` tinyint(1) NOT NULL DEFAULT 0, |
|
|
|
`initial` tinyint(1) NOT NULL DEFAULT 0 |
|
|
|
`initial` tinyint(1) NOT NULL DEFAULT 0, |
|
|
|
|
|
|
|
`disabled` tinyint(1) NOT NULL DEFAULT 0, |
|
|
|
|
|
|
|
`hidden` tinyint(1) NOT NULL DEFAULT 0, |
|
|
|
|
|
|
|
`blacklisted` tinyint(1) NOT NULL DEFAULT 0 |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `subscriptions` ( |
|
|
|
CREATE TABLE `subscriptions` ( |
|
|
@ -34,7 +31,3 @@ ALTER TABLE `hosts` |
|
|
|
ALTER TABLE `subscriptions` |
|
|
|
ALTER TABLE `subscriptions` |
|
|
|
ADD PRIMARY KEY (`name`); |
|
|
|
ADD PRIMARY KEY (`name`); |
|
|
|
COMMIT; |
|
|
|
COMMIT; |
|
|
|
|
|
|
|
|
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|
|
|
|
|
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|
|
|
|
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|
|
|
|
|
|
|