From 0910afd54d6a28d9617568c9c213ebe9ad3c0ec1 Mon Sep 17 00:00:00 2001 From: Ochenstarik Date: Wed, 30 Sep 2026 21:10:43 +0700 Subject: [PATCH] fix(migrations): preserve applied offline sync checksum --- migrations/0011_offline_sync_backend.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/0011_offline_sync_backend.up.sql b/migrations/0011_offline_sync_backend.up.sql index f44c9f6..6426b25 100644 --- a/migrations/0011_offline_sync_backend.up.sql +++ b/migrations/0011_offline_sync_backend.up.sql @@ -18,7 +18,7 @@ CREATE TABLE staff_sync_devices ( UNIQUE (tenant_id, id), UNIQUE (tenant_id, device_code), UNIQUE (tenant_id, token_hash), - FOREIGN KEY (tenant_id, org_unit_id) REFERENCES staff_org_units (tenant_id, id) ON DELETE SET NULL (org_unit_id) + FOREIGN KEY (tenant_id, org_unit_id) REFERENCES staff_org_units (tenant_id, id) ON DELETE SET NULL ); CREATE INDEX staff_sync_devices_token_hash_idx