Skip to content

Alembic for maintaining the same schema SQLite and Postgres DB #1009

Discussion options

You must be logged in to vote

the "develop on sqlite, deploy to Postgresql" use case is very common. it's not the only way of working, and as you noted has some limitations, but if you are fine working around the limitations it's definitely a very typical way to work.

it's also common to have test suites that run the majority of tests on sqlite, but then have a subset of "functional" tests that only take effect when a PostgreSQL database URL is also made available; tests like these include migration tests and tests that may be making use of PostgreSQL-specific features. that way you can iterate the majority of features testing only on sqlite but still have postgresql in coverage.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@KantiCodes
Comment options

@jdavcs
Comment options

Answer selected by KantiCodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants