Skip to content

Commit

Permalink
add IF NOT EXISTS to postgresql create table statement
Browse files Browse the repository at this point in the history
  • Loading branch information
henryivesjones committed Mar 13, 2023
1 parent df6eaa7 commit 7a19566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "relationalize"
version = "0.1.6"
version = "0.1.7"
authors = [
{ name="Henry Jones", email="henry.jones@tulip.co" },
]
Expand Down
2 changes: 1 addition & 1 deletion relationalize/sql_dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PostgresDialect(SQLDialect):
}

base_ddl: str = """
CREATE TABLE "{schema}"."{table_name}" (
CREATE TABLE IF NOT EXISTS "{schema}"."{table_name}" (
{columns}
);
""".strip()
Expand Down

0 comments on commit 7a19566

Please sign in to comment.