-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicates in migration #279
Comments
Strange, can you show yourr models? |
Is enough model where i made changes? from src.core.utils.models import BaseModel
from tortoise import fields
IDENTIFYING_COMPANY_FIELDS = {'inn', 'ogrn'}
class Company(BaseModel):
COMPANY_TYPES = ("AB", "CD", "EF")
type = fields.CharField(20, default=COMPANY_TYPES[2])
sub_type = fields.CharField(max_length=255, null=True)
name_full = fields.CharField(max_length=255, null=True)
name_short = fields.CharField(max_length=255, null=True)
inn = fields.CharField(max_length=255, null=True)
ogrn = fields.CharField(max_length=255, null=True)
ogrn_data_reg = fields.DatetimeField(null=True)
director = fields.CharField(max_length=255, null=True)
email = fields.CharField(max_length=255, null=True)
legal_address = fields.CharField(max_length=255, null=True)
okopf = fields.CharField(max_length=255, null=True)
kpp = fields.CharField(max_length=255, null=True)
phone = fields.CharField(max_length=255, null=True) |
Can confirm this happens. I changed type of a few columns from Int to Decimal, and for each column Aerich repeated |
fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Im change CharField to DateTime and use
aerich migrate
Migration file look like this:
I removed duplocate and successfully make
aerich upgrade
.Is it ok?
The text was updated successfully, but these errors were encountered: