◆ DatabaseSchemaUpdater()
Class that can apply migration files to a database to update the schema.
- Parameters
-
| database | Interface for the database connection |
◆ apply_migration_files()
| bool ocpp::common::DatabaseSchemaUpdater::apply_migration_files |
( |
const fs::path & |
migration_file_directory, |
|
|
uint32_t |
target_schema_version |
|
) |
| |
Apply migration files to a database to update the schema.
- Parameters
-
| sql_migration_files_path | Filesystem path to migration file folder |
| target_schema_version | The target schema version of the database |
- Returns
- True if migrations applied successfully, false otherwise. Database is not modified when the migration fails.
The documentation for this class was generated from the following files: