You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a postgreSQL database with tortoise orm.
The model:
Before:
class MyModel(Model):
id = fields.UUIDField(pk=True)
created_at = fields.DatetimeField(auto_now_add=True)
soft_deleted = fields.BooleanField(default=False)
class Meta:
ordering = ["created_at"]
After:
class MyModel(Model):
id = fields.UUIDField(pk=True)
created_at = fields.DatetimeField(auto_now_add=True)
soft_deleted = fields.BooleanField(default=False)
class Meta:
indexes = (("soft_deleted", "created_at"),)
ordering = ["created_at"]
I then ran aerich migrate --name default and I'm getting a message "No changes detected". I've tried adding indexes to some other tables and it doesn't work. Constraints (i.e. unique_together) seems to work fine.
The text was updated successfully, but these errors were encountered:
I'm using a postgreSQL database with tortoise orm.
The model:
Before:
After:
I then ran
aerich migrate --name default
and I'm getting a message "No changes detected". I've tried adding indexes to some other tables and it doesn't work. Constraints (i.e. unique_together) seems to work fine.The text was updated successfully, but these errors were encountered: