Revision fc893a6d
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
SL/DB/MetaSetup/Part.pm | ||
---|---|---|
66 | 66 |
key_columns => { buchungsgruppen_id => 'id' }, |
67 | 67 |
}, |
68 | 68 |
|
69 |
expense_accno => { |
|
70 |
class => 'SL::DB::Chart', |
|
71 |
key_columns => { expense_accno_id => 'id' }, |
|
72 |
}, |
|
73 |
|
|
74 |
income_accno => { |
|
75 |
class => 'SL::DB::Chart', |
|
76 |
key_columns => { income_accno_id => 'id' }, |
|
77 |
}, |
|
78 |
|
|
79 |
inventory_accno => { |
|
80 |
class => 'SL::DB::Chart', |
|
81 |
key_columns => { inventory_accno_id => 'id' }, |
|
82 |
}, |
|
83 |
|
|
69 | 84 |
partsgroup => { |
70 | 85 |
class => 'SL::DB::PartsGroup', |
71 | 86 |
key_columns => { partsgroup_id => 'id' }, |
sql/Pg-upgrade2/parts_add_chart_foreign_keys.sql | ||
---|---|---|
1 |
-- @tag: parts_add_chart_foreign_keys |
|
2 |
-- @description: Warenkonten mit chart-Tabelle per Fremdschlüssel verknüpft. |
|
3 |
-- @depends: release_3_4_1 |
|
4 |
-- @ignore: 0 |
|
5 |
|
|
6 |
ALTER TABLE parts ADD FOREIGN KEY (income_accno_id) REFERENCES chart(id); |
|
7 |
ALTER TABLE parts ADD FOREIGN KEY (inventory_accno_id) REFERENCES chart(id); |
|
8 |
ALTER TABLE parts ADD FOREIGN KEY (expense_accno_id) REFERENCES chart(id); |
Auch abrufbar als: Unified diff
Tabelle parts: Fremdschlüssel für Konten