'Tortoise ORM - Migration

I have problem while i tried to make migration.

aerich init -t .......TORTOISE_ORM
aerich init-db
aerich migrate

response:

AttributeError: 'UniqueIndexWithCondition' object has no attribute 'index_name'

if i redeclared index_name() like:

def index_name(self, schema, model):
    print(f'schema: {schema} | model: {model}')
    return None

All ok, but in migration i have this line:

-- upgrade --
DROP INDEX "None";


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source