fix(migrations): preserve applied offline sync checksum
Some checks are pending
ci / verify (push) Waiting to run
ci / format (push) Waiting to run
ci / e2e (push) Waiting to run
ci / windows (push) Waiting to run
ci / docker-build (push) Blocked by required conditions

This commit is contained in:
Ochenstarik 2026-09-30 21:10:43 +07:00
parent 94f17c78cf
commit 0910afd54d

View file

@ -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