fix(migrations): preserve applied offline sync checksum
This commit is contained in:
parent
94f17c78cf
commit
0910afd54d
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ CREATE TABLE staff_sync_devices (
|
||||||
UNIQUE (tenant_id, id),
|
UNIQUE (tenant_id, id),
|
||||||
UNIQUE (tenant_id, device_code),
|
UNIQUE (tenant_id, device_code),
|
||||||
UNIQUE (tenant_id, token_hash),
|
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
|
CREATE INDEX staff_sync_devices_token_hash_idx
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue