From 6000f5e476197918a339810ed890ed78ce5b066f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Wed, 22 Jul 2020 10:11:12 +0200 Subject: [PATCH] Remove alignment of CREATE TABLE in SQL --- .../aerodrome_label/update_aerodrome_label_point.sql | 2 +- layers/building/update_building.sql | 2 +- layers/housenumber/housenumber_centroid.sql | 2 +- layers/place/update_city_point.sql | 2 +- layers/place/update_continent_point.sql | 2 +- layers/place/update_country_point.sql | 2 +- layers/place/update_island_point.sql | 2 +- layers/place/update_island_polygon.sql | 2 +- layers/place/update_state_point.sql | 2 +- layers/poi/update_poi_point.sql | 2 +- layers/poi/update_poi_polygon.sql | 2 +- layers/transportation/update_transportation_merge.sql | 2 +- .../transportation_name/update_transportation_name.sql | 2 +- layers/water_name/update_marine_point.sql | 2 +- layers/waterway/update_important_waterway.sql | 10 +++++----- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/layers/aerodrome_label/update_aerodrome_label_point.sql b/layers/aerodrome_label/update_aerodrome_label_point.sql index e730b5195..f349af9fd 100644 --- a/layers/aerodrome_label/update_aerodrome_label_point.sql +++ b/layers/aerodrome_label/update_aerodrome_label_point.sql @@ -24,7 +24,7 @@ CREATE SCHEMA IF NOT EXISTS aerodrome_label; CREATE TABLE IF NOT EXISTS aerodrome_label.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION aerodrome_label.flag() RETURNS trigger AS diff --git a/layers/building/update_building.sql b/layers/building/update_building.sql index 5c15ae8a6..99292ca80 100644 --- a/layers/building/update_building.sql +++ b/layers/building/update_building.sql @@ -88,7 +88,7 @@ CREATE SCHEMA IF NOT EXISTS buildings; CREATE TABLE IF NOT EXISTS buildings.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); diff --git a/layers/housenumber/housenumber_centroid.sql b/layers/housenumber/housenumber_centroid.sql index fad1f3dd8..8e4294585 100644 --- a/layers/housenumber/housenumber_centroid.sql +++ b/layers/housenumber/housenumber_centroid.sql @@ -25,7 +25,7 @@ CREATE SCHEMA IF NOT EXISTS housenumber; CREATE TABLE IF NOT EXISTS housenumber.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION housenumber.flag() RETURNS trigger AS diff --git a/layers/place/update_city_point.sql b/layers/place/update_city_point.sql index 7766491ce..6795e2673 100644 --- a/layers/place/update_city_point.sql +++ b/layers/place/update_city_point.sql @@ -60,7 +60,7 @@ CREATE SCHEMA IF NOT EXISTS place_city; CREATE TABLE IF NOT EXISTS place_city.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_city.flag() RETURNS trigger AS diff --git a/layers/place/update_continent_point.sql b/layers/place/update_continent_point.sql index 6502299ae..18f607c6c 100644 --- a/layers/place/update_continent_point.sql +++ b/layers/place/update_continent_point.sql @@ -21,7 +21,7 @@ CREATE SCHEMA IF NOT EXISTS place_continent_point; CREATE TABLE IF NOT EXISTS place_continent_point.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_continent_point.flag() RETURNS trigger AS diff --git a/layers/place/update_country_point.sql b/layers/place/update_country_point.sql index a49e3b675..715e9d524 100644 --- a/layers/place/update_country_point.sql +++ b/layers/place/update_country_point.sql @@ -96,7 +96,7 @@ CREATE SCHEMA IF NOT EXISTS place_country; CREATE TABLE IF NOT EXISTS place_country.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_country.flag() RETURNS trigger AS diff --git a/layers/place/update_island_point.sql b/layers/place/update_island_point.sql index b1c79f7fe..e9f16b5ba 100644 --- a/layers/place/update_island_point.sql +++ b/layers/place/update_island_point.sql @@ -21,7 +21,7 @@ CREATE SCHEMA IF NOT EXISTS place_island_point; CREATE TABLE IF NOT EXISTS place_island_point.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_island_point.flag() RETURNS trigger AS diff --git a/layers/place/update_island_polygon.sql b/layers/place/update_island_polygon.sql index 9938373f2..a081f31f2 100644 --- a/layers/place/update_island_polygon.sql +++ b/layers/place/update_island_polygon.sql @@ -24,7 +24,7 @@ CREATE SCHEMA IF NOT EXISTS place_island_polygon; CREATE TABLE IF NOT EXISTS place_island_polygon.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_island_polygon.flag() RETURNS trigger AS diff --git a/layers/place/update_state_point.sql b/layers/place/update_state_point.sql index 4693d3c69..b77dd3168 100644 --- a/layers/place/update_state_point.sql +++ b/layers/place/update_state_point.sql @@ -61,7 +61,7 @@ CREATE SCHEMA IF NOT EXISTS place_state; CREATE TABLE IF NOT EXISTS place_state.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION place_state.flag() RETURNS trigger AS diff --git a/layers/poi/update_poi_point.sql b/layers/poi/update_poi_point.sql index d058b581e..f2660805f 100644 --- a/layers/poi/update_poi_point.sql +++ b/layers/poi/update_poi_point.sql @@ -57,7 +57,7 @@ CREATE SCHEMA IF NOT EXISTS poi_point; CREATE TABLE IF NOT EXISTS poi_point.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION poi_point.flag() RETURNS trigger AS diff --git a/layers/poi/update_poi_polygon.sql b/layers/poi/update_poi_polygon.sql index d1b042fab..f84f394e1 100644 --- a/layers/poi/update_poi_polygon.sql +++ b/layers/poi/update_poi_polygon.sql @@ -42,7 +42,7 @@ CREATE SCHEMA IF NOT EXISTS poi_polygon; CREATE TABLE IF NOT EXISTS poi_polygon.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION poi_polygon.flag() RETURNS trigger AS diff --git a/layers/transportation/update_transportation_merge.sql b/layers/transportation/update_transportation_merge.sql index 531513a96..f61794407 100644 --- a/layers/transportation/update_transportation_merge.sql +++ b/layers/transportation/update_transportation_merge.sql @@ -126,7 +126,7 @@ CREATE SCHEMA IF NOT EXISTS transportation; CREATE TABLE IF NOT EXISTS transportation.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION transportation.flag() RETURNS trigger AS diff --git a/layers/transportation_name/update_transportation_name.sql b/layers/transportation_name/update_transportation_name.sql index 48969f5a8..8a473fef1 100644 --- a/layers/transportation_name/update_transportation_name.sql +++ b/layers/transportation_name/update_transportation_name.sql @@ -182,7 +182,7 @@ CREATE SCHEMA IF NOT EXISTS transportation_name; CREATE TABLE IF NOT EXISTS transportation_name.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION transportation_name.flag() RETURNS trigger AS diff --git a/layers/water_name/update_marine_point.sql b/layers/water_name/update_marine_point.sql index 8fec8d0ae..f04cf19d4 100644 --- a/layers/water_name/update_marine_point.sql +++ b/layers/water_name/update_marine_point.sql @@ -43,7 +43,7 @@ CREATE SCHEMA IF NOT EXISTS water_name_marine; CREATE TABLE IF NOT EXISTS water_name_marine.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION water_name_marine.flag() RETURNS trigger AS diff --git a/layers/waterway/update_important_waterway.sql b/layers/waterway/update_important_waterway.sql index 20512a5ba..e70f7df1c 100644 --- a/layers/waterway/update_important_waterway.sql +++ b/layers/waterway/update_important_waterway.sql @@ -78,12 +78,12 @@ CREATE SCHEMA IF NOT EXISTS waterway_important; CREATE TABLE IF NOT EXISTS waterway_important.changes ( - id serial PRIMARY KEY, - is_old boolean, - name character varying, + id serial PRIMARY KEY, + is_old boolean, + name character varying, name_en character varying, name_de character varying, - tags hstore, + tags hstore, UNIQUE (is_old, name, name_en, name_de, tags) ); CREATE OR REPLACE FUNCTION waterway_important.store() RETURNS trigger AS @@ -106,7 +106,7 @@ $$ LANGUAGE plpgsql; CREATE TABLE IF NOT EXISTS waterway_important.updates ( id serial PRIMARY KEY, - t text, + t text, UNIQUE (t) ); CREATE OR REPLACE FUNCTION waterway_important.flag() RETURNS trigger AS