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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No changes in schema detected. #266

Closed
haku-d opened this issue May 14, 2019 · 1 comment
Closed

No changes in schema detected. #266

haku-d opened this issue May 14, 2019 · 1 comment
Labels

Comments

@haku-d
Copy link

haku-d commented May 14, 2019

Hello @miguelgrinberg

Thanks for your package 馃憤

I have some small troubles, I started my application with simple model as below:

class Test(db.Model):
    id = db.Column(db.Integer, primary_key = True)
    name = db.Column(db.String(64))

Then everything works great until I am going to change the length of column ```name`` from 64 to 128

class Test(db.Model):
    id = db.Column(db.Integer, primary_key = True)
    name = db.Column(db.String(128))

I run command flask db migrate again and there are no migration is generated. The console printed: INFO [alembic.env] No changes in schema detected.

Did I make something wrong or misconfigured?

@miguelgrinberg
Copy link
Owner

This is in the Alembic domain, not this extension which just creates a wrapper for Flask. See #24 for a thread related to your situation.

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

No branches or pull requests

2 participants