Skip to content

fields.DecimalField can`t change max_digits, decimal_places by migrate #246

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

Closed
panla opened this issue Jun 7, 2022 · 2 comments · Fixed by #249
Closed

fields.DecimalField can`t change max_digits, decimal_places by migrate #246

panla opened this issue Jun 7, 2022 · 2 comments · Fixed by #249

Comments

@panla
Copy link

panla commented Jun 7, 2022

env

  • tortoise-orm==0.19.1
  • asyncmy==0.2.5
  • aerich==0.6.3

desc

longitude = fields.DecimalField(max_digits=12, decimal_places=9)

if change it to

longitude = fields.DecimalField(max_digits=16, decimal_places=14)

aerich cant`t generate migrate file.

@Mukhametvaleev
Copy link

I have the same issue too :( Aerich shows "No changes detected"

@panla
Copy link
Author

panla commented Jun 27, 2022

我也有同样的问题 :( Aerich 显示“没有检测到变化”

final, write a migration sql file to change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants