projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
Unit.pm
diff --git
a/SL/DB/MetaSetup/Unit.pm
b/SL/DB/MetaSetup/Unit.pm
index
0849b4e
..
d8d47af
100644
(file)
--- a/
SL/DB/MetaSetup/Unit.pm
+++ b/
SL/DB/MetaSetup/Unit.pm
@@
-9,12
+9,12
@@
use base qw(SL::DB::Object);
__PACKAGE__->meta->table('units');
__PACKAGE__->meta->columns(
__PACKAGE__->meta->table('units');
__PACKAGE__->meta->columns(
- name => { type => 'varchar', length => 20, not_null => 1 },
base_unit => { type => 'varchar', length => 20 },
factor => { type => 'numeric', precision => 5, scale => 20 },
base_unit => { type => 'varchar', length => 20 },
factor => { type => 'numeric', precision => 5, scale => 20 },
- type => { type => 'varchar', length => 20 },
- sortkey => { type => 'integer', not_null => 1 },
id => { type => 'serial', not_null => 1 },
id => { type => 'serial', not_null => 1 },
+ name => { type => 'varchar', length => 20, not_null => 1 },
+ sortkey => { type => 'integer', not_null => 1 },
+ type => { type => 'varchar', length => 20 },
);
__PACKAGE__->meta->primary_key_columns([ 'name' ]);
);
__PACKAGE__->meta->primary_key_columns([ 'name' ]);
@@
-28,7
+28,5
@@
__PACKAGE__->meta->foreign_keys(
},
);
},
);
-# __PACKAGE__->meta->initialize;
-
1;
;
1;
;