X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FCsvImportProfileSetting.pm;h=b6284967acf5b7bcc3d67b61f471736a69eaf0b2;hb=5d1790289c565ace01143d524538bd505859a57c;hp=d1822a358f7f818578efcc458dba445acd5b42b5;hpb=c2cf302a52645c06687d49496ea4a42471ea095c;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/CsvImportProfileSetting.pm b/SL/DB/MetaSetup/CsvImportProfileSetting.pm index d1822a358..b6284967a 100644 --- a/SL/DB/MetaSetup/CsvImportProfileSetting.pm +++ b/SL/DB/MetaSetup/CsvImportProfileSetting.pm @@ -4,28 +4,26 @@ package SL::DB::CsvImportProfileSetting; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'csv_import_profile_settings', +__PACKAGE__->meta->table('csv_import_profile_settings'); - columns => [ - id => { type => 'serial', not_null => 1 }, - csv_import_profile_id => { type => 'integer', not_null => 1 }, - key => { type => 'text', not_null => 1 }, - value => { type => 'text' }, - ], +__PACKAGE__->meta->columns( + csv_import_profile_id => { type => 'integer', not_null => 1 }, + id => { type => 'serial', not_null => 1 }, + key => { type => 'text', not_null => 1 }, + value => { type => 'text' }, +); - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->primary_key_columns([ 'id' ]); - unique_key => [ 'csv_import_profile_id', 'key' ], +__PACKAGE__->meta->unique_keys([ 'csv_import_profile_id', 'key' ]); - foreign_keys => [ - csv_import_profile => { - class => 'SL::DB::CsvImportProfile', - key_columns => { csv_import_profile_id => 'id' }, - }, - ], +__PACKAGE__->meta->foreign_keys( + csv_import_profile => { + class => 'SL::DB::CsvImportProfile', + key_columns => { csv_import_profile_id => 'id' }, + }, ); 1;