Revision d482851e
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/DB/MetaSetup/Order.pm | ||
---|---|---|
83 | 83 |
key_columns => { employee_id => 'id' }, |
84 | 84 |
}, |
85 | 85 |
|
86 |
employee_obj => { |
|
87 |
class => 'SL::DB::Employee', |
|
88 |
key_columns => { employee_id => 'id' }, |
|
89 |
}, |
|
90 |
|
|
91 | 86 |
globalproject => { |
92 | 87 |
class => 'SL::DB::Project', |
93 | 88 |
key_columns => { globalproject_id => 'id' }, |
sql/Pg-upgrade2/oe_delivery_orders_foreign_keys.sql | ||
---|---|---|
19 | 19 |
ALTER TABLE oe ADD FOREIGN KEY (delivery_customer_id) REFERENCES customer (id); |
20 | 20 |
ALTER TABLE oe ADD FOREIGN KEY (delivery_vendor_id) REFERENCES vendor (id); |
21 | 21 |
ALTER TABLE oe ADD FOREIGN KEY (department_id) REFERENCES department (id); |
22 |
ALTER TABLE oe ADD FOREIGN KEY (employee_id) REFERENCES employee (id); |
|
23 | 22 |
ALTER TABLE oe ADD FOREIGN KEY (language_id) REFERENCES language (id); |
24 | 23 |
ALTER TABLE oe ADD FOREIGN KEY (payment_id) REFERENCES payment_terms (id); |
25 | 24 |
ALTER TABLE oe ADD FOREIGN KEY (shipto_id) REFERENCES shipto (shipto_id); |
Auch abrufbar als: Unified diff
Doppelter foreign key auf oe wieder entfernt