1 CREATE TABLE IF NOT EXISTS `stats_registration` (
2 `stats_registration_id` int(11) NOT NULL,
3 `registration` varchar(10) NOT NULL,
4 `cnt` int(11) NOT NULL,
5 `aircraft_icao` varchar(10) DEFAULT NULL,
6 `stats_airline` varchar(255) DEFAULT '',
7 `filter_name` varchar(255) DEFAULT ''
8 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
10 ALTER TABLE `stats_registration` ADD PRIMARY KEY (`stats_registration_id`), ADD UNIQUE KEY `registration` (`registration`,`stats_airline`,`filter_name`);
12 ALTER TABLE `stats_registration` MODIFY `stats_registration_id` int(11) NOT NULL AUTO_INCREMENT;