Skip to content

Commit ab8baa2

Browse files
author
Marius Burkard
committed
- changed PRIMARY keys with null values to UNIQUE
1 parent d933cc2 commit ab8baa2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

install/sql/incremental/upd_0081.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ CREATE TABLE `ftp_traffic` (
198198
`traffic_date` date NOT NULL,
199199
`in_bytes` bigint(32) unsigned NOT NULL,
200200
`out_bytes` bigint(32) unsigned NOT NULL,
201-
PRIMARY KEY (`hostname`,`traffic_date`)
201+
UNIQUE KEY (`hostname`,`traffic_date`)
202202
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
203203

204204
ALTER TABLE `mail_forwarding` ADD COLUMN `allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n' AFTER `active`;

install/sql/ispconfig3.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ CREATE TABLE `ftp_traffic` (
657657
`traffic_date` date NOT NULL,
658658
`in_bytes` bigint(32) unsigned NOT NULL,
659659
`out_bytes` bigint(32) unsigned NOT NULL,
660-
PRIMARY KEY (`hostname`,`traffic_date`)
660+
UNIQUE KEY (`hostname`,`traffic_date`)
661661
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
662662

663663
-- --------------------------------------------------------
@@ -1153,7 +1153,7 @@ CREATE TABLE IF NOT EXISTS `openvz_traffic` (
11531153
`veid` int(11) NOT NULL DEFAULT '0',
11541154
`traffic_date` date NULL DEFAULT NULL,
11551155
`traffic_bytes` bigint(32) unsigned NOT NULL DEFAULT '0',
1156-
PRIMARY KEY (`veid`,`traffic_date`)
1156+
UNIQUE KEY (`veid`,`traffic_date`)
11571157
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11581158

11591159
--
@@ -2043,7 +2043,7 @@ CREATE TABLE `web_traffic` (
20432043
`hostname` varchar(255) NOT NULL DEFAULT '',
20442044
`traffic_date` date NULL DEFAULT NULL,
20452045
`traffic_bytes` bigint(32) unsigned NOT NULL default '0',
2046-
PRIMARY KEY (`hostname`,`traffic_date`)
2046+
UNIQUE KEY (`hostname`,`traffic_date`)
20472047
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
20482048

20492049
-- --------------------------------------------------------

0 commit comments

Comments
 (0)