Skip to content
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

Rename on field add #134

Closed
Olegt0rr opened this issue Mar 21, 2021 · 1 comment
Closed

Rename on field add #134

Olegt0rr opened this issue Mar 21, 2021 · 1 comment

Comments

@Olegt0rr
Copy link

On field add aerich asks to rename existing field (event it's not marked to delete)

Example

State 1

class User(Model):
    first_name = CharField(max_length=255)

State 2

class User(Model):
    first_name = CharField(max_length=255)
    last_name = CharField(max_length=255)

Run aerich migrate

Rename first_name to last_name? [True]

@long2ice
Copy link
Member

Fixed, thanks to report!

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

No branches or pull requests

2 participants