fix: harden usage accounting idempotency
This commit is contained in:
1 parent
22fe6bf659
commit
3de1530074
14 files changed
+708
-107
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "0cdb7b32-1eb5-4dcf-9949-3862dbbad2b4",
|
||||
"id": "f650c8ba-ebde-411d-92d0-caf0f9885c44",
|
||||
"prevId": "cfd5f4d1-55ac-46d9-9667-cd156f26e070",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"immich_album_id": {
|
||||
"name": "immich_album_id",
|
||||
"type": "text",
|
||||
"type": "uuid",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1157,7 +1157,7 @@
|
||||
},
|
||||
"immich_asset_id": {
|
||||
"name": "immich_asset_id",
|
||||
"type": "text",
|
||||
"type": "uuid",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1224,6 +1224,13 @@
|
||||
"type": "varchar(64)",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
"legacy_intent": {
|
||||
"name": "legacy_intent",
|
||||
"type": "boolean",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
@@ -1288,6 +1295,10 @@
|
||||
"download_events_request_fingerprint_hex_check": {
|
||||
"name": "download_events_request_fingerprint_hex_check",
|
||||
"value": "\"download_events\".\"request_fingerprint\" ~ '^[0-9a-f]{64}$'"
|
||||
},
|
||||
"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}$'"
|
||||
}
|
||||
},
|
||||
"isRLSEnabled": false
|
||||
@@ -1311,7 +1322,7 @@
|
||||
},
|
||||
"immich_asset_id": {
|
||||
"name": "immich_asset_id",
|
||||
"type": "text",
|
||||
"type": "uuid",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
@@ -1323,7 +1334,7 @@
|
||||
},
|
||||
"immich_album_id_snapshot": {
|
||||
"name": "immich_album_id_snapshot",
|
||||
"type": "text",
|
||||
"type": "uuid",
|
||||
"primaryKey": false,
|
||||
"notNull": true
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "7",
|
||||
"when": 1786308409516,
|
||||
"when": 1786352073526,
|
||||
"tag": "0002_accounting_intents",
|
||||
"breakpoints": true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user