From fe45e8a83d2583a13d9f8c4b239c9416d90f274b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 13 Jun 2016 13:04:25 -0300 Subject: [PATCH] Bug 16720: Remove DBIx ActionLogs.pm MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit b8c950a4c1b1ead8a58686b27c95f9891cdccbae) Signed-off-by: Frédéric Demians (cherry picked from commit c0d3e6db1191e2bb63da70cf1d3280f25efe7bfa) Signed-off-by: Julian Maurice (cherry picked from commit ffd86f218e50124ff0090bb4e41fc4a32cb51b99) Signed-off-by: Chris Cormack --- 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 13b8cc216f..0000000000 --- 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.39.5