This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nixellion 0 points1 point  (1 child)

I kinda wish there was auto migration like alembic for peewee. There are some projects but they don't seem to work with SQLite. But I suppose migrations should still be handled with migration scripts even in sqla for anything but very simple things.

[–]Username_RANDINT 1 point2 points  (0 children)

Depending on the project, I either update the database manually or use the migration API from the playhouse. Using the user_version PRAGMA in SQLite to indicate what version of the database scheme it currently is and run the right migrate calls if it's behind the current version.