Open Olegt0rr opened 3 years ago
Strange behaviour with custom configs
aerich -n migration-local -c res/aerich/aerich.ini upgrade
usage: aerich [-h] [-c C] aerich: error: unrecognized arguments: -n migration-local upgrade
entrypoint ├── res │ ├── aerich │ │ ├── aerich.ini │ │ ├── aerich_cfg_local.py │ │ └── migrations │ │ └── models │ │ └── 0_20210315180332_init.sql
[migration-local] tortoise_orm = res.aerich.aerich_cfg_local.TORTOISE_ORM location = ./res/aerich/migrations
POSTGRES_HOST = "localhost" POSTGRES_PORT = 5432 POSTGRES_PASSWORD = "pgpassword" POSTGRES_USER = "pguser" POSTGRES_DB = "pgdb" POSTGRES_URI = ( f"postgres://{POSTGRES_USER}:{POSTGRES_PASSWORD}@" f"{POSTGRES_HOST}:{POSTGRES_PORT}/{POSTGRES_DB}" ) TORTOISE_ORM = { "connections": {"default": POSTGRES_URI}, "apps": { "models": { "models": ["app.models", "aerich.models"], "default_connection": "default", }, }, }
Strange behaviour with custom configs
Command
Exception
Tree
Files
aerich.ini
aerich_cfg_local.py