Commit Graph

17 Commits

Author SHA1 Message Date
schroda
6e0d1cfd3d Simplify metadata app key prefix migration 2025-01-06 12:23:41 +01:00
schroda
3d7a4146e4 Handle metadata key deletion early exit
In case no keys had to be deleted it always returned an empty object which broke the whole metadata migration and resulted in the final metadata to always fall back to the default values
2025-01-06 01:58:49 +01:00
schroda
9f42b75eee Prevent applying already applied metadata migrations again
The "appliedMigrationId" was converted to it's index of the "METADATA_MIGRATIONS" and then was compared to the "migration id" which starts at 1 instead of 0
2025-01-06 01:45:46 +01:00
schroda
724319b6c5 Only commit metadata migration changes of newly applied migration
Changes got commited everytime regardless off if the migration had already been applied
2025-01-06 01:42:42 +01:00
schroda
05ce572c67 Add logic to delete metadata on migration 2025-01-05 15:29:56 +01:00
schroda
bb473276a7 Handle multiple prefixes in metadata key migration
Was never updated after the change that made it possible that metadata can have multiple prefixes (e.g. device names)
2025-01-05 15:29:55 +01:00
schroda
ab2b1b2218 Handle multiple prefixes in metadata value migration
Was never updated after the change that made it possible that metadata can have multiple prefixes (e.g. device names)
2025-01-05 15:29:54 +01:00
schroda
d657ad3999 Commit new metadata after migration 2025-01-05 15:29:51 +01:00
schroda
258b26f837 Remove unnecessary function exports 2025-01-05 14:54:20 +01:00
schroda
65da9db123 Correctly read last applied migration id from metadata 2025-01-05 14:53:52 +01:00
schroda
a51d81d267 Extract "MetadataReader" functions 2025-01-04 21:28:26 +01:00
schroda
b7971f5183 Move "getAppMetadataFrom" to "MetadataMigrations" 2025-01-04 21:27:51 +01:00
schroda
d748f630a9 Support dynamic new value creation for metadata value migration 2024-12-11 00:17:36 +01:00
schroda
45bedfaddb Support regex in metadata value migration 2024-12-11 00:17:35 +01:00
schroda
0ae9d9ebb2 Custom reader profiles 2024-12-09 02:38:37 +01:00
schroda
e71c4b7ef1 Cleanup deprecated metadata after migration
- delete deprecated metadata
- save applied migration id per metadata holder
2024-11-04 00:11:01 +01:00
schroda
babda1ea57 Move metadata files into new folder 2024-10-06 00:16:34 +02:00