Skip to content

Commit

Permalink
fix: postgres sql error (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Sep 23, 2022
1 parent 75db7ce commit 9da9982
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.7

### 0.7.1rc1

- Fix postgres sql error (#263)

### 0.7.0

**Now aerich use `.py` file to record versions.**
Expand Down
4 changes: 2 additions & 2 deletions aerich/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ async def _generate_diff_py(cls, name):

version_file = Path(cls.migrate_location, version)
content = MIGRATE_TEMPLATE.format(
upgrade_sql=",\n ".join(map(lambda x: f'"""{x}"""', cls.upgrade_operators)),
downgrade_sql=",\n ".join(map(lambda x: f'"""{x}"""', cls.downgrade_operators)),
upgrade_sql=",\n ".join(map(lambda x: f"'{x}'", cls.upgrade_operators)),
downgrade_sql=",\n ".join(map(lambda x: f"'{x}'", cls.downgrade_operators)),
)
with open(version_file, "w", encoding="utf-8") as f:
f.write(content)
Expand Down
2 changes: 1 addition & 1 deletion aerich/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.4"
__version__ = "0.7.1rc1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aerich"
version = "0.7.0"
version = "0.7.1rc1"
description = "A database migrations tool for Tortoise ORM."
authors = ["long2ice <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 9da9982

Please sign in to comment.