Added unique constrain for class characteristics migration
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 27s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 3m49s
Laravel Larastan / larastan (pull_request) Failing after 5m2s

This commit is contained in:
dhanabalan
2026-03-11 10:29:09 +05:30
parent 9c582b73a5
commit 0b5b0b8dd4

View File

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