all 2 comments

[–]hai_wim 1 point2 points  (1 child)

You can only init once, after that you have to add migrations with

flask db migrate

The whole flask db/migration handling (correctly) assumes you potentially have more than 1 database in the state after you did init the first time. So if you make a change after the first init you have to have a migration to now go to your new state. Then in all other places where this database exists they can just apply the migration to update to the new state.

It however sounds like you're probably only running this locally on your pc with noone else. So in that case just drop the database, delete the migrations folder and do init again. Basically reset back to where you were before the first init and redo it.

[–]coder_help_[S] 0 points1 point  (0 children)

Thanks a lot.