Part of stoqlib.database.migration View In Hierarchy
| Method | check_uptodate | Verify if the schema is up to date. |
| Method | update | Updates the database schema |
| Method | update_plugins | Undocumented |
| Method | check_plugins | Undocumented |
| Method | get_current_version | This method is revision for returning the database schema version |
| Method | after_update | This can be implemented in a subclass, but it is not mandatory. |
| Method | generate_sql_for_patch | This method is responsible for creating an SQL |
Inherited from SchemaMigration:
| Method | __init__ | Undocumented |
| Method | _patchname_is_valid | Undocumented |
| Method | _get_patches | Undocumented |
| Method | _update_schema | Check the current version of database and update the schema if |
| Method | apply_all_patches | Apply all available patches |
This must be implemented in a subclass
| Returns | the current database patch version | |