mlmd.downgrade_schema
Stay organized with collections
Save and categorize content based on your preferences.
Downgrades the db specified in the connection config to a schema version.
mlmd.downgrade_schema(
config: mlmd.proto.ConnectionConfig
,
downgrade_to_schema_version: int
) -> None
If downgrade_to_schema_version
is greater or equals to zero and less than
the current library's schema version, it runs a downgrade transaction to
revert the db schema and migrate the data. The update is transactional, and
any failure will cause a full rollback of the downgrade. Once the downgrade
is done, the user needs to use the older version of the library to connect to
the database.
Args |
config
|
a proto.ConnectionConfig having the connection params.
|
downgrade_to_schema_version
|
downgrades the given database to a specific
version. For v0.13.2 release, the schema_version is 0. For 0.14.0 and
0.15.0 release, the schema_version is 4. More details are described in
g3doc/get_start#upgrade_mlmd_library
|
Raises |
errors.InvalidArgumentError
|
if the downgrade_to_schema_version is not
given or it is negative or greater than the library version.
|
RuntimeError
|
if the downgrade is not finished, return detailed error.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."],[],[]]