Skip to content

Commit

Permalink
Merge pull request tortoise#281 from CortexPE/patch-1
Browse files Browse the repository at this point in the history
Fix tortoise#280 by removing trailing semicolon
  • Loading branch information
long2ice authored Dec 20, 2022
2 parents 52b50a2 + 7b6545d commit 3fbf9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerich/ddl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, client: "BaseDBAsyncClient"):
self.schema_generator = self.schema_generator_cls(client)

def create_table(self, model: "Type[Model]"):
return self.schema_generator._get_table_sql(model, True)["table_creation_string"]
return self.schema_generator._get_table_sql(model, True)["table_creation_string"].rstrip(";")

def drop_table(self, table_name: str):
return self._DROP_TABLE_TEMPLATE.format(table_name=table_name)
Expand Down

0 comments on commit 3fbf9fe

Please sign in to comment.