Skip to content

Commit

Permalink
Merge pull request #1148 from reedy/patch-6
Browse files Browse the repository at this point in the history
create.sql: Integrate *-upgrade.sql
  • Loading branch information
jpatokal committed Feb 28, 2023
2 parents 28eed48 + cc1a3b4 commit 2aa4f7c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sql/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ CREATE TABLE `airlines` (
`icao` varchar(3) default NULL,
`callsign` text,
`country` text,
`country_code` varchar(2),
`alid` int(11) NOT NULL auto_increment,
`uid` int(11) default NULL,
`alias` text,
`mode` char(1) default 'F',
`active` varchar(1) default 'N',
`source` text,
PRIMARY KEY (`alid`),
KEY `iata` (`iata`),
KEY `icao` (`icao`)
Expand All @@ -27,6 +29,7 @@ CREATE TABLE `airports` (
`name` text NOT NULL,
`city` text,
`country` text,
`country_code` varchar(2),
`iata` varchar(3) default NULL,
`icao` varchar(4) default NULL,
`x` double NOT NULL,
Expand All @@ -37,6 +40,8 @@ CREATE TABLE `airports` (
`timezone` float default NULL,
`dst` char(1) default NULL,
`tz_id` text,
`type` text,
`source` text,
PRIMARY KEY (`apid`),
KEY `x` (`x`),
KEY `y` (`y`),
Expand Down Expand Up @@ -96,12 +101,10 @@ CREATE TABLE `airports_oa` (

DROP TABLE IF EXISTS `countries`;
CREATE TABLE `countries` (
`junk` text,
`code` varchar(2) NOT NULL,
`name` text,
`oa_code` varchar(2) default NULL,
`dst` char(1) default NULL,
PRIMARY KEY (`code`)
`iso_code` varchar(2) default NULL,
`dafif_code` varchar(2) NOT NULL,
PRIMARY KEY (`dafif_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `countries_oa`;
Expand Down

0 comments on commit 2aa4f7c

Please sign in to comment.