projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MetaSetup: Folgerun um die Foreign Keys umzudrehen
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
GenericTranslation.pm
diff --git
a/SL/DB/MetaSetup/GenericTranslation.pm
b/SL/DB/MetaSetup/GenericTranslation.pm
index
46a19ca
..
94556c7
100644
(file)
--- a/
SL/DB/MetaSetup/GenericTranslation.pm
+++ b/
SL/DB/MetaSetup/GenericTranslation.pm
@@
-18,6
+18,13
@@
__PACKAGE__->meta->columns(
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+__PACKAGE__->meta->foreign_keys(
+ language => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+);
+
# __PACKAGE__->meta->initialize;
1;