Say I have a Postgres database with two different schema's, one called public
and one called development
. I know at the class level I can set __table_args__ = {"schema":"schema_name"}
for each model, but if I wanted to switch from development to prod. wouldn't I haven't to update all my models?
Is there a way to set the schema for the dev and prod schemas in flask? Or should I just create another database as a dev database and just backup the prod database to the development database?