From 88503ff1cf00eb38b1eacc6b78c50faf8770139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 26 Oct 2019 15:12:27 +0300 Subject: [PATCH] consolidate sql things to init.sql --- MTM/task4-straipsnis/import.sql | 0 MTM/task4-straipsnis/schema.sql | 20 -------------------- 2 files changed, 20 deletions(-) delete mode 100644 MTM/task4-straipsnis/import.sql delete mode 100644 MTM/task4-straipsnis/schema.sql diff --git a/MTM/task4-straipsnis/import.sql b/MTM/task4-straipsnis/import.sql deleted file mode 100644 index e69de29..0000000 diff --git a/MTM/task4-straipsnis/schema.sql b/MTM/task4-straipsnis/schema.sql deleted file mode 100644 index c05fedb..0000000 --- a/MTM/task4-straipsnis/schema.sql +++ /dev/null @@ -1,20 +0,0 @@ -CREATE TABLE airports ( - gid SERIAL NOT NULL PRIMARY KEY, - name TEXT, - city TEXT, - country TEXT, - iata TEXT, - icao TEXT, - geom GEOMETRY, - latitude DOUBLE PRECISION, - longitude DOUBLE PRECISION, - altitude DOUBLE PRECISION, - timezone TEXT, - dst TEXT, - tz TEXT, - type TEXT, - source TEXT, - CONSTRAINT enforce_dims_geom CHECK (st_ndims(geom) = 2), - CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POINT'::text OR geom IS NULL), - CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = 4326) -);