Fix: Cartodbfication failed with existing PK

This fixes #174
When a unique index and a primary key contraint existed for a column
named cartodb_id cartodbfy tried to add another PK constraint
This commit is contained in:
Javier Goizueta
2015-11-20 12:56:52 +01:00
parent ea9503bd32
commit a0ca2288f4
3 changed files with 25 additions and 1 deletions
+10
View File
@@ -103,6 +103,16 @@ Table with non unique and null cartodb_id #148 cartodbfied fine
4|2
DROP TABLE
CREATE TABLE
CREATE INDEX
CREATE INDEX
ALTER TABLE
INSERT 0 3
Table with primary key and unique index on it #174 cartodbfied fine
1
2
3
DROP TABLE
CREATE TABLE
INSERT 0 2
Table with dots in name columns (cartodb #6114) cartodbfied fine
one|1