fix: generates two semicolons in a row. (#301)

This commit is contained in:
long2ice 2023-05-12 14:52:17 +08:00
parent dbc0d9e7ef
commit f0bc3126e9
4 changed files with 5 additions and 6 deletions

View File

@ -2,14 +2,12 @@
## 0.7
### 0.7.3
- Added `-i` and `--in-transaction` options to `aerich migrate` command. (#296)
### 0.7.2
- Support virtual fields.
- Fix modify multiple times. (#279)
- Added `-i` and `--in-transaction` options to `aerich migrate` command. (#296)
- Fix generates two semicolons in a row. (#301)
### 0.7.1

View File

@ -156,6 +156,7 @@ class Migrate:
:param fk_m2m_index:
:return:
"""
operator = operator.rstrip(";")
if upgrade:
if fk_m2m_index:
cls._upgrade_fk_m2m_index_operators.append(operator)

View File

@ -1 +1 @@
__version__ = "0.7.1"
__version__ = "0.7.2"

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "aerich"
version = "0.7.3"
version = "0.7.2"
description = "A database migrations tool for Tortoise ORM."
authors = ["long2ice <long2ice@gmail.com>"]
license = "Apache-2.0"