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

Table rename: No changes detected #139

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

Table rename: No changes detected #139

Olegt0rr opened this issue Mar 24, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Olegt0rr
Copy link

How to reproduce

1. Create model User without setting custom table name.

class User(Model):
    id = IntField(pk=True)

2. Init db / create migrations.

Table name is user

3. Change table name for User model

class User(Model):
    id = IntField(pk=True)

    class Meta:
        table = "users"

4. Try to create migrations

No changes detected, but table name was changed!

@long2ice
Copy link
Member

That should be fixed

@long2ice long2ice added the bug Something isn't working label Mar 25, 2021
long2ice added a commit that referenced this issue Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants