blog_api_tutorial icon indicating copy to clipboard operation
blog_api_tutorial copied to clipboard

No changes in schema detected.

Open rafaelanchieta opened this issue 5 years ago • 5 comments

When I run python manager.py db migrate after running python manager.py db init, the following message appears.

INFO [alembic.env] No changes in schema detected.

And no table is created.

rafaelanchieta avatar Jan 10 '19 14:01 rafaelanchieta

You will be executing the migrations for the first time ?

ybagarka1 avatar Mar 19 '19 17:03 ybagarka1

Yes

rafaelanchieta avatar Mar 19 '19 22:03 rafaelanchieta

I'm am also getting this issue. Have you found a fix to it?

g-casey avatar Sep 29 '19 22:09 g-casey

i think i know where the issue came from but i cannot solve it, it's related to your **required variable Environment ** I try a lot of adresses for my db but even for me it's not working well. The probleme is related to this cmd export DATABASE_URL= postgres://name:password@houst:port/blog_api_db.

PaulGhibs avatar Oct 13 '19 15:10 PaulGhibs

from .BlogpostModel import BlogpostModel, BlogpostSchema from .UserModel import UserModel, UserModelSchema

Add these two lines in the end of models_init_.py file & the issue will be fixed.

image

hodev09 avatar May 12 '20 17:05 hodev09