Added unique constrain for class characteristics migration #471
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user