From 85da554f9ca728db840c0122e2c3535953919c64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 10 Sep 2010 15:03:48 +0200 Subject: [PATCH] SchamInfo -> Rose Model --- SL/DB/Helpers/ALL.pm | 1 + SL/DB/Helpers/Mappings.pm | 2 +- SL/DB/MetaSetup/SchemaInfo.pm | 24 ++++++++++++++++++++++++ SL/DB/SchemaInfo.pm | 13 +++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 SL/DB/MetaSetup/SchemaInfo.pm create mode 100644 SL/DB/SchemaInfo.pm diff --git a/SL/DB/Helpers/ALL.pm b/SL/DB/Helpers/ALL.pm index f766d169a..396b38d1c 100644 --- a/SL/DB/Helpers/ALL.pm +++ b/SL/DB/Helpers/ALL.pm @@ -42,6 +42,7 @@ use SL::DB::PurchaseInvoice; use SL::DB::RMA; use SL::DB::SepaExport; use SL::DB::SepaExportItem; +use SL::DB::SchemaInfo; use SL::DB::Shipto; use SL::DB::Tax; use SL::DB::Taxkey; diff --git a/SL/DB/Helpers/Mappings.pm b/SL/DB/Helpers/Mappings.pm index d4ee675e5..15ce697b5 100644 --- a/SL/DB/Helpers/Mappings.pm +++ b/SL/DB/Helpers/Mappings.pm @@ -14,7 +14,6 @@ my @lxoffice_blacklist_permanent = qw( # these are not managed _yet_, but will hopefully at some point. # if you are confident that one of these works, remove it here. my @lxoffice_blacklist_temp = qw( - schema_info ); my @lxoffice_blacklist = (@lxoffice_blacklist_permanent, @lxoffice_blacklist_temp); @@ -56,6 +55,7 @@ my %lxoffice_package_names = ( rma => 'RMA', sepa_export => 'sepa_export', sepa_export_items => 'sepa_export_item', + schema_info => 'schema_info', tax => 'tax', taxkeys => 'taxkey', units => 'unit', diff --git a/SL/DB/MetaSetup/SchemaInfo.pm b/SL/DB/MetaSetup/SchemaInfo.pm new file mode 100644 index 000000000..0a1e70ef3 --- /dev/null +++ b/SL/DB/MetaSetup/SchemaInfo.pm @@ -0,0 +1,24 @@ +# This file has been auto-generated. Do not modify it; it will be overwritten +# by rose_auto_create_model.pl automatically. +package SL::DB::SchemaInfo; + +use strict; + +use base qw(SL::DB::Object); + +__PACKAGE__->meta->setup( + table => 'schema_info', + + columns => [ + tag => { type => 'text', not_null => 1 }, + login => { type => 'text' }, + itime => { type => 'timestamp', default => 'now()' }, + ], + + primary_key_columns => [ 'tag' ], + + allow_inline_column_values => 1, +); + +1; +; diff --git a/SL/DB/SchemaInfo.pm b/SL/DB/SchemaInfo.pm new file mode 100644 index 000000000..b1c38d4a6 --- /dev/null +++ b/SL/DB/SchemaInfo.pm @@ -0,0 +1,13 @@ +# This file has been auto-generated only because it didn't exist. +# Feel free to modify it at will; it will not be overwritten automatically. + +package SL::DB::SchemaInfo; + +use strict; + +use SL::DB::MetaSetup::SchemaInfo; + +# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. +__PACKAGE__->meta->make_manager_class; + +1; -- 2.20.1