feat: improve inspectdb and support postgres

This commit is contained in:
long2ice
2022-04-01 19:56:48 +08:00
parent c39462820c
commit 45129cef9f
15 changed files with 598 additions and 274 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "aerich"
version = "0.6.2"
version = "0.6.3"
description = "A database migrations tool for Tortoise ORM."
authors = ["long2ice <long2ice@gmail.com>"]
license = "Apache-2.0"
@@ -20,7 +20,7 @@ tortoise-orm = "*"
click = "*"
asyncpg = { version = "*", optional = true }
asyncmy = { version = "*", optional = true }
ddlparse = "*"
pydantic = "*"
dictdiffer = "*"
tomlkit = "*"
@@ -34,14 +34,34 @@ pytest-asyncio = "*"
bandit = "*"
pytest-mock = "*"
cryptography = "*"
pyproject-flake8 = "*"
[tool.poetry.extras]
asyncmy = ["asyncmy"]
asyncpg = ["asyncpg"]
[tool.aerich]
tortoise_orm = "conftest.tortoise_orm"
location = "./migrations"
src_folder = "./."
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry.scripts]
aerich = "aerich.cli:main"
[tool.black]
line-length = 100
target-version = ['py36', 'py37', 'py38', 'py39']
[tool.pytest.ini_options]
asyncio_mode = 'auto'
[tool.mypy]
pretty = true
ignore_missing_imports = true
[tool.flake8]
ignore = 'E501,W503,E203'