Bug 16720: Remove DBIx ActionLogs.pm
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jun 2016 16:04:25 +0000 (13:04 -0300)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 7 Jul 2016 23:14:48 +0000 (11:14 +1200)
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@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b8c950a4c1b1ead8a58686b27c95f9891cdccbae)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit c0d3e6db1191e2bb63da70cf1d3280f25efe7bfa)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit ffd86f218e50124ff0090bb4e41fc4a32cb51b99)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Koha/Schema/Result/ActionLogs.pm [deleted file]

diff --git a/Koha/Schema/Result/ActionLogs.pm b/Koha/Schema/Result/ActionLogs.pm
deleted file mode 100644 (file)
index 13b8cc2..0000000
+++ /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;