[Koha-patches] [PATCH] Bug 16720: Remove DBIx ActionLogs.pm
Srdjan
srdjan at catalyst.net.nz
Tue Jun 14 06:11:23 CEST 2016
From: Tomas Cohen Arazi <tomascohen at theke.io>
The update_dbix_class_files.pl script generates ActionLog.pm instead, which is
already on the source tree.
To test:
- Apply the patch
=> SUCCESS: Koha/Schema/Result/ActionLogs.pm is removed
- Run:
$ mysql -uroot
> CREATE DATABASE dbic; \q
$ mysql -uroot dbic < kohaclone/installer/data/mysql/kohastructure.sql
$ misc/devel/update_dbix_class_files.pl --db_name dbic --db_user root
=> SUCCESS: Koha/Schema/Result/ActionLogs.pm is not re-generated
- Run:
$ git grep ActionLogs
=> SUCCESS: There's no code using it
- Sign off
Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
Koha/Schema/Result/ActionLogs.pm | 90 ----------------------------------------
1 file changed, 90 deletions(-)
delete mode 100644 Koha/Schema/Result/ActionLogs.pm
diff --git a/Koha/Schema/Result/ActionLogs.pm b/Koha/Schema/Result/ActionLogs.pm
deleted file mode 100644
index 13b8cc2..0000000
--- a/Koha/Schema/Result/ActionLogs.pm
+++ /dev/null
@@ -1,90 +0,0 @@
-package Koha::Schema::Result::ActionLogs;
-
-# Created by DBIx::Class::Schema::Loader
-# DO NOT MODIFY THE FIRST PART OF THIS FILE
-
-use strict;
-use warnings;
-
-use base 'DBIx::Class::Core';
-
-
-=head1 NAME
-
-Koha::Schema::Result::ActionLogs
-
-=cut
-
-__PACKAGE__->table("action_logs");
-
-=head1 ACCESSORS
-
-=head2 action_id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
-
-=head2 timestamp
-
- data_type: 'timestamp'
- default_value: current_timestamp
- is_nullable: 0
-
-=head2 user
-
- data_type: 'integer'
- default_value: 0
- is_nullable: 0
-
-=head2 module
-
- data_type: 'text'
- is_nullable: 1
-
-=head2 action
-
- data_type: 'text'
- is_nullable: 1
-
-=head2 object
-
- data_type: 'integer'
- is_nullable: 1
-
-=head2 info
-
- data_type: 'text'
- is_nullable: 1
-
-=cut
-
-__PACKAGE__->add_columns(
- "action_id",
- { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
- "timestamp",
- {
- data_type => "timestamp",
- default_value => \"current_timestamp",
- is_nullable => 0,
- },
- "user",
- { data_type => "integer", default_value => 0, is_nullable => 0 },
- "module",
- { data_type => "text", is_nullable => 1 },
- "action",
- { data_type => "text", is_nullable => 1 },
- "object",
- { data_type => "integer", is_nullable => 1 },
- "info",
- { data_type => "text", is_nullable => 1 },
-);
-__PACKAGE__->set_primary_key("action_id");
-
-
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9VN0SGNBYM/thO7QzQB4Bg
-
-
-# You can replace this text with custom content, and it will be preserved on regeneration
-1;
--
2.7.4
More information about the Koha-patches
mailing list