Browse Source

update sql file

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 3 years ago
parent
commit
7754f07d81
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 15
      sql/database.sql

15
sql/database.sql

@ -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 */;

Loading…
Cancel
Save