I create custom index (inherit from Index). if I am not declare index_name in my Index, i have error:
AttributeError: 'UniqueIndexWithCondition' object has no attribute 'index_name'
if i declare a method index_name
def index_name(self, schema, model):
pass
Creating a migrations with this at the beginning
-- upgrade --
DROP INDEX "None";
And have this error when trying to migrate
tortoise.exceptions.OperationalError: index "None" does not exist
I create custom index (inherit from Index). if I am not declare index_name in my Index, i have error:
AttributeError: 'UniqueIndexWithCondition' object has no attribute 'index_name'
if i declare a method index_name
Creating a migrations with this at the beginning
And have this error when trying to migrate
tortoise.exceptions.OperationalError: index "None" does not exist