Renamed service to api
This commit is contained in:
13
api/migrations/000000_airports/up.sql
Normal file
13
api/migrations/000000_airports/up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE EXTENSION IF NOT EXISTS postgis;
|
||||
CREATE TABLE IF NOT EXISTS airports (
|
||||
icao TEXT PRIMARY KEY NOT NULL,
|
||||
category TEXT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
elevation_ft REAL NOT NULL,
|
||||
iso_country TEXT NOT NULL,
|
||||
iso_region TEXT NOT NULL,
|
||||
municipality TEXT NOT NULL,
|
||||
has_metar BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
point GEOMETRY(POINT,4326) NOT NULL,
|
||||
data JSONB NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user