Skip to content

Commit

Permalink
Merge pull request #167 from nikochiko/alterindex
Browse files Browse the repository at this point in the history
Add support for creating, altering, and dropping indices
  • Loading branch information
the4thdoctor committed Apr 30, 2024
2 parents bdc376a + 1e8a5a9 commit c3b2163
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 50 deletions.
1 change: 0 additions & 1 deletion pg_chameleon/lib/pg_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,6 @@ def __generate_ddl(self, token, destination_schema):
query=""" DROP TABLE IF EXISTS "%s"."%s";""" % (destination_schema, token["name"])
elif token["command"] == "TRUNCATE":
query=""" TRUNCATE TABLE "%s"."%s" CASCADE;""" % (destination_schema, token["name"])

elif token["command"] == "ALTER TABLE":
query=self.build_alter_table(destination_schema, token)
elif token["command"] == "DROP PRIMARY KEY":
Expand Down

0 comments on commit c3b2163

Please sign in to comment.