dxcc tables: extend prefix/call field to 32 characters

While importing the clublog data, I noticed there's an entry
with a 11 character callsign. This is longer than the 10 characters
allowed for the field, causing a problem. This commit extends it to
32 characters, which should be more than enough, while also being a
power of 2.

fixes #272
This commit is contained in:
Michael Cullen
2019-05-17 02:00:11 +01:00
parent 2f85b199be
commit fb1e949acf
3 changed files with 26 additions and 7 deletions

View File

@@ -115,7 +115,7 @@ CREATE TABLE `contests` (
-- ----------------------------
DROP TABLE IF EXISTS `dxcc`;
CREATE TABLE `dxcc` (
`prefix` varchar(10) NOT NULL,
`prefix` varchar(32) NOT NULL,
`name` varchar(150) DEFAULT NULL,
`cqz` float NOT NULL,
`ituz` float NOT NULL,
@@ -3555,7 +3555,7 @@ CREATE TABLE `migrations` (
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES ('14');
INSERT INTO `migrations` VALUES ('15');
-- ----------------------------
-- Table structure for notes
@@ -3909,7 +3909,7 @@ INSERT INTO `users` VALUES ('4', 'm0abc', '$2a$08$r9UF3YhipAY6htSQoZRjeOFDx3Yuh7
CREATE TABLE `dxcc_entities` (
`adif` smallint(6) NOT NULL,
`name` varchar(150) DEFAULT NULL,
`prefix` varchar(10) NOT NULL,
`prefix` varchar(32) NOT NULL,
`cqz` smallint(6) NOT NULL,
`ituz` smallint(6) NOT NULL,
`cont` varchar(5) NOT NULL,
@@ -3921,7 +3921,7 @@ CREATE TABLE `dxcc_entities` (
CREATE TABLE `dxcc_exceptions` (
`record` int(11) NOT NULL,
`call` varchar(10) DEFAULT NULL,
`call` varchar(32) DEFAULT NULL,
`entity` varchar(255) NOT NULL,
`adif` smallint(6) NOT NULL,
`cqz` smallint(6) NOT NULL,
@@ -3934,7 +3934,7 @@ CREATE TABLE `dxcc_exceptions` (
CREATE TABLE `dxcc_prefixes` (
`record` int(11) NOT NULL,
`call` varchar(10) DEFAULT NULL,
`call` varchar(32) DEFAULT NULL,
`entity` varchar(255) NOT NULL,
`adif` smallint(6) NOT NULL,
`cqz` smallint(6) NOT NULL,
@@ -3961,4 +3961,4 @@ ALTER TABLE `dxcc_exceptions`
-- Indexes for table `dxcc_prefixes`
--
ALTER TABLE `dxcc_prefixes`
ADD PRIMARY KEY (`record`);
ADD PRIMARY KEY (`record`);