DB Migration¶
The migration object is accessed via Database.migration or CrudDB and is used to create and manage database migrations.
fluid.db.Migration
dataclass
¶
A wrapper around Alembic commands to perform database migrations
init
¶
show
¶
history
¶
revision
¶
Source code in fluid/db/migration.py
upgrade
¶
downgrade
¶
current
¶
message
¶
db_exists
¶
db_create
¶
Creates a new database if it does not exist
db_drop
¶
truncate_all
¶
drop_all_schemas
¶
Drop all schema in database
create_ro_user
¶
Creates a read-only user
Source code in fluid/db/migration.py
drop_role
¶
Drop a role