Add logic to migrate metadata values (#227)
Makes it possible to rename or fix values of already saved metadata without the user losing his data
This commit is contained in:
9
src/typings.d.ts
vendored
9
src/typings.d.ts
vendored
@@ -56,6 +56,15 @@ interface IState {
|
||||
|
||||
interface IMetadataMigration {
|
||||
appKeyPrefix?: { oldPrefix: string; newPrefix: string };
|
||||
values?: {
|
||||
/**
|
||||
* In case the migration should only be applied to a specific metadata key.
|
||||
* Otherwise, all metadata keys will get migrated.
|
||||
*/
|
||||
key?: string;
|
||||
oldValue: string;
|
||||
newValue: string;
|
||||
}[];
|
||||
keys?: { oldKey: string; newKey: string }[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user