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
After migration I can find the new field with type Decimal64Field, but it is not alias. For example:
# model from tests/test_migrations.pyclassAliasModel1(Model):
date=DateField()
date_alias=DateField(alias='date')
int_field=Int8Field()
int_field_plus_one=Int8Field(alias='int_field + 1')
# this is new field with alias expressiondec=Decimal64Field(6, alias='toDecimal64(int_field, 6) / 10')
engine=MergeTree('date', ('date',))
@classmethoddeftable_name(cls):
return'alias_date'
After migration this model has dec field but it is not alias.
First it creates correctly field here, but then it checks types and compares Decimal64(6) with Decimal(18, 6) and alters it again.
The text was updated successfully, but these errors were encountered:
I've tried to change Decimal64Field(6) to DecimalField(18, 6) but it didn't help, because DecimalField hasdb_type = Decimal(18,6) (no space) and clickhouse returns type Decimal(18, 6)
Hi!
After migration I can find the new field with type Decimal64Field, but it is not alias. For example:
After migration this model has dec field but it is not alias.
First it creates correctly field here, but then it checks types and compares
Decimal64(6)
withDecimal(18, 6)
and alters it again.The text was updated successfully, but these errors were encountered: