From c00430d2a57aa8aa70775555f9d0818e790efacb Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 6 Mar 2019 16:27:54 +0000 Subject: [PATCH] Fixes issue #268 missing DXCC tables After installation run the update option --- install/assets/install.sql | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/install/assets/install.sql b/install/assets/install.sql index dab7cbb7..7f461cf5 100755 --- a/install/assets/install.sql +++ b/install/assets/install.sql @@ -3903,3 +3903,62 @@ CREATE TABLE `users` ( -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('4', 'm0abc', '$2a$08$r9UF3YhipAY6htSQoZRjeOFDx3Yuh7Zjuh45vKyUN4gO8g5l.saES', 'demo@demo.com', '99', 'M0ABC', 'io91js', 'Demo', 'Account', '0', null, null, null, null, null); + + + +CREATE TABLE `dxcc_entities` ( + `adif` smallint(6) NOT NULL, + `name` varchar(150) DEFAULT NULL, + `prefix` varchar(10) NOT NULL, + `cqz` smallint(6) NOT NULL, + `ituz` smallint(6) NOT NULL, + `cont` varchar(5) NOT NULL, + `long` float NOT NULL, + `lat` float NOT NULL, + `end` date DEFAULT NULL, + `start` date DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `dxcc_exceptions` ( + `record` int(11) NOT NULL, + `call` varchar(10) DEFAULT NULL, + `entity` varchar(255) NOT NULL, + `adif` smallint(6) NOT NULL, + `cqz` smallint(6) NOT NULL, + `cont` varchar(5) NOT NULL, + `long` float NOT NULL, + `lat` float NOT NULL, + `start` date DEFAULT NULL, + `end` date DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `dxcc_prefixes` ( + `record` int(11) NOT NULL, + `call` varchar(10) DEFAULT NULL, + `entity` varchar(255) NOT NULL, + `adif` smallint(6) NOT NULL, + `cqz` smallint(6) NOT NULL, + `cont` varchar(5) NOT NULL, + `long` float NOT NULL, + `lat` float NOT NULL, + `start` date DEFAULT NULL, + `end` date DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Indexes for table `dxcc_entities` +-- +ALTER TABLE `dxcc_entities` + ADD PRIMARY KEY (`adif`); + +-- +-- Indexes for table `dxcc_exceptions` +-- +ALTER TABLE `dxcc_exceptions` + ADD PRIMARY KEY (`record`); + +-- +-- Indexes for table `dxcc_prefixes` +-- +ALTER TABLE `dxcc_prefixes` + ADD PRIMARY KEY (`record`); \ No newline at end of file