fix: preserve legacy accounting migration data
This commit is contained in:
1 parent
3de1530074
commit
3cdca5c82c
10 files changed
+559
-177
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "f650c8ba-ebde-411d-92d0-caf0f9885c44",
|
||||
"id": "8944c4e7-b3ab-47b5-a05b-91be6fb5c915",
|
||||
"prevId": "cfd5f4d1-55ac-46d9-9667-cd156f26e070",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"immich_album_id": {
|
||||
"name": "immich_album_id",
|
||||
"type": "uuid",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -110,7 +110,12 @@
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"checkConstraints": {},
|
||||
"checkConstraints": {
|
||||
"album_grants_canonical_immich_album_id_check": {
|
||||
"name": "album_grants_canonical_immich_album_id_check",
|
||||
"value": "\"album_grants\".\"immich_album_id\" ~ '^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'"
|
||||
}
|
||||
},
|
||||
"isRLSEnabled": false
|
||||
},
|
||||
"public.audit_events": {
|
||||
@@ -1157,7 +1162,7 @@
|
||||
},
|
||||
"immich_asset_id": {
|
||||
"name": "immich_asset_id",
|
||||
"type": "uuid",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1290,7 +1295,7 @@
|
||||
"checkConstraints": {
|
||||
"download_events_intent_kind_check": {
|
||||
"name": "download_events_intent_kind_check",
|
||||
"value": "\"download_events\".\"intent_kind\" in ('new_usage', 'repeat_download')"
|
||||
"value": "\"download_events\".\"intent_kind\" in ('new_usage', 'repeat_download', 'legacy')"
|
||||
},
|
||||
"download_events_request_fingerprint_hex_check": {
|
||||
"name": "download_events_request_fingerprint_hex_check",
|
||||
@@ -1299,6 +1304,10 @@
|
||||
"download_events_canonical_idempotency_key_check": {
|
||||
"name": "download_events_canonical_idempotency_key_check",
|
||||
"value": "\"download_events\".\"legacy_intent\" OR \"download_events\".\"idempotency_key\" ~ '^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'"
|
||||
},
|
||||
"download_events_canonical_immich_asset_id_check": {
|
||||
"name": "download_events_canonical_immich_asset_id_check",
|
||||
"value": "\"download_events\".\"immich_asset_id\" ~ '^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'"
|
||||
}
|
||||
},
|
||||
"isRLSEnabled": false
|
||||
@@ -1322,7 +1331,7 @@
|
||||
},
|
||||
"immich_asset_id": {
|
||||
"name": "immich_asset_id",
|
||||
"type": "uuid",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1334,7 +1343,7 @@
|
||||
},
|
||||
"immich_album_id_snapshot": {
|
||||
"name": "immich_album_id_snapshot",
|
||||
"type": "uuid",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1416,7 +1425,16 @@
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"policies": {},
|
||||
"checkConstraints": {},
|
||||
"checkConstraints": {
|
||||
"usages_canonical_immich_asset_id_check": {
|
||||
"name": "usages_canonical_immich_asset_id_check",
|
||||
"value": "\"usages\".\"immich_asset_id\" ~ '^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'"
|
||||
},
|
||||
"usages_canonical_immich_album_id_check": {
|
||||
"name": "usages_canonical_immich_album_id_check",
|
||||
"value": "\"usages\".\"immich_album_id_snapshot\" ~ '^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'"
|
||||
}
|
||||
},
|
||||
"isRLSEnabled": false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user