Revision 36922218
Von Kivitendo Admin vor fast 8 Jahren hinzugefügt
SL/DB/MetaSetup/MakeModel.pm | ||
---|---|---|
24 | 24 |
|
25 | 25 |
__PACKAGE__->meta->allow_inline_column_values(1); |
26 | 26 |
|
27 |
__PACKAGE__->meta->foreign_keys( |
|
28 |
vendor => { |
|
29 |
class => 'SL::DB::Vendor', |
|
30 |
key_columns => { make => 'id' }, |
|
31 |
}, |
|
32 |
); |
|
33 |
|
|
27 | 34 |
1; |
28 | 35 |
; |
sql/Pg-upgrade2/makemodel_add_vendor_foreign_key.sql | ||
---|---|---|
1 |
-- @tag: makemodel_add_vendor_foreign_key |
|
2 |
-- @description: Makemodel make mit Lieferant verknüpft |
|
3 |
-- @depends: release_3_4_1 |
|
4 |
-- @ignore: 0 |
|
5 |
|
|
6 |
ALTER TABLE makemodel ADD FOREIGN KEY (make) REFERENCES vendor(id); |
Auch abrufbar als: Unified diff
Makemodel make mit Lieferant per Fremdschlüssel verknüpft