Merge pull request 'Added unique constrain for class characteristics migration' (#471) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s

Reviewed-on: #471
This commit was merged in pull request #471.
This commit is contained in:
2026-03-11 05:00:35 +00:00

View File

@@ -178,6 +178,7 @@ return new class extends Migration
updated_by TEXT DEFAULT NULL,
deleted_at TIMESTAMP,
UNIQUE (gernr, plant_id),
FOREIGN KEY (plant_id) REFERENCES plants (id),
FOREIGN KEY (machine_id) REFERENCES machines (id),
FOREIGN KEY (item_id) REFERENCES items (id)