projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Payment Helper setzt $self->transactions zurück
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
Currency.pm
diff --git
a/SL/DB/MetaSetup/Currency.pm
b/SL/DB/MetaSetup/Currency.pm
index
705467f
..
2426feb
100644
(file)
--- a/
SL/DB/MetaSetup/Currency.pm
+++ b/
SL/DB/MetaSetup/Currency.pm
@@
-4,20
+4,18
@@
package SL::DB::Currency;
use strict;
use strict;
-use
base
qw(SL::DB::Object);
+use
parent
qw(SL::DB::Object);
-__PACKAGE__->meta->setup(
- table => 'currencies',
+__PACKAGE__->meta->table('currencies');
- columns => [
-
id => { type => 'serial', not_null => 1 },
-
name => { type => 'text', not_null => 1 },
- ],
+__PACKAGE__->meta->columns(
+ id => { type => 'serial', not_null => 1 },
+ name => { type => 'text', not_null => 1 },
+);
- primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
- unique_key => [ 'name' ],
-);
+__PACKAGE__->meta->unique_keys([ 'name' ]);
1;
;
1;
;