From bdbbdbbf93328b0bd6b720e22f34a48d08827249 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Tue, 3 Nov 2015 18:32:57 +0000 Subject: [PATCH] Modify sequence names to match production --- geocoder/extension/sql/0.0.1/15_country_decoder_table.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geocoder/extension/sql/0.0.1/15_country_decoder_table.sql b/geocoder/extension/sql/0.0.1/15_country_decoder_table.sql index 510fd3a..32d49cf 100644 --- a/geocoder/extension/sql/0.0.1/15_country_decoder_table.sql +++ b/geocoder/extension/sql/0.0.1/15_country_decoder_table.sql @@ -30,14 +30,14 @@ CREATE TABLE country_decoder ( ); -CREATE SEQUENCE country_decoder_cartodb_id_seq +CREATE SEQUENCE countries_cartodb_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE country_decoder_cartodb_id_seq OWNED BY country_decoder.cartodb_id; -ALTER TABLE ONLY country_decoder ALTER COLUMN cartodb_id SET DEFAULT nextval('country_decoder_cartodb_id_seq'::regclass); +ALTER SEQUENCE countries_cartodb_id_seq OWNED BY country_decoder.cartodb_id; +ALTER TABLE ONLY country_decoder ALTER COLUMN cartodb_id SET DEFAULT nextval('countries_cartodb_id_seq'::regclass); ALTER TABLE ONLY country_decoder ADD CONSTRAINT country_decoder_cartodb_id_key UNIQUE (cartodb_id);