Skip to content

Commit

Permalink
Merge branch 'dev' into features/#3-include-vg-250
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido Pleßmann committed Dec 3, 2020
2 parents 8fe32b8 + a3882ef commit 6a3d174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/egon/data/processing/openstreetmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def modify_tables():
]:

# Drop indices
sql_statements = [f"DROP INDEX {table}_index;"]
sql_statements = [f"DROP INDEX IF EXISTS {table}_index;"]

# Drop primary keys
sql_statements.append(f"DROP INDEX {table}_pkey;")
sql_statements.append(f"DROP INDEX IF EXISTS {table}_pkey;")

# Add primary key on newly created column "gid"
sql_statements.append(f"ALTER TABLE public.{table} ADD gid SERIAL;")
Expand Down

0 comments on commit 6a3d174

Please sign in to comment.