]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/AuthGroup.pm
Kleinere DB-Details (Fremdschlüssel und verwaiste Tabelle)
[kivitendo-erp.git] / SL / DB / MetaSetup / AuthGroup.pm
index 31d49153acdb472113af5df2ff9ed346c2f694d3..2671cef8b00c7cc7d3bb6975a6edaee2a28a8a6e 100644 (file)
@@ -6,19 +6,20 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'group',
+__PACKAGE__->meta->table('group');
+__PACKAGE__->meta->schema('auth');
 
-  columns => [
-    id          => { type => 'serial', not_null => 1 },
-    name        => { type => 'text', not_null => 1 },
-    description => { type => 'text' },
-  ],
+__PACKAGE__->meta->columns(
+  id          => { type => 'serial', not_null => 1 },
+  name        => { type => 'text', not_null => 1 },
+  description => { type => 'text' },
+);
 
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-  unique_key => [ 'name' ],
-);
+__PACKAGE__->meta->unique_keys([ 'name' ]);
+
+# __PACKAGE__->meta->initialize;
 
 1;
 ;