congress.db.migration.
alter_column_if_exists
(*args, **kwargs)¶Alter a column only if it exists in the schema.
congress.db.migration.
alter_enum
(table, column, enum_type, nullable)¶congress.db.migration.
create_table_if_not_exist_psql
(table_name, values)¶congress.db.migration.
drop_table_if_exists
(*args, **kwargs)¶congress.db.migration.
raise_if_offline
(func)¶Decorator for raising if a function is called in offline mode.
congress.db.migration.
rename_table_if_exists
(*args, **kwargs)¶congress.db.migration.
schema_has_column
(*args, **kwargs)¶Check whether the specified column exists in the current schema.
This method cannot be executed in offline mode.
congress.db.migration.
schema_has_table
(*args, **kwargs)¶Check whether the specified table exists in the current schema.
This method cannot be executed in offline mode.
congress.db.migration.
skip_if_offline
(func)¶Decorator for skipping migrations in offline mode.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.