From 06d1592d5dbf14dec2b1b81d49355a27111243de Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 17 Apr 2019 15:15:19 -0300 Subject: [PATCH] Bug 22729: [DO_NOT_PUSH] DBIC update Content-Type: text/plain; charset=utf-8 I add this DBIC update because I didn't manage to add the +anonymize => { is_boolean => 1 } change without the schema updating script to bark because of the non-existent column... Signed-off-by: Marcel de Rooy --- Koha/Schema/Result/Borrower.pm | 20 +++++++------------- Koha/Schema/Result/Deletedborrower.pm | 18 ++++++------------ 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index f626ca9e18..476b904fe9 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -451,12 +451,11 @@ __PACKAGE__->table("borrowers"); data_type: 'mediumtext' is_nullable: 1 -=head2 flgAnonymized +=head2 anonymized - accessor: 'flg_anonymized' data_type: 'tinyint' default_value: 0 - is_nullable: 1 + is_nullable: 0 =cut @@ -660,13 +659,8 @@ __PACKAGE__->add_columns( { data_type => "integer", default_value => 0, is_nullable => 1 }, "overdrive_auth_token", { data_type => "mediumtext", is_nullable => 1 }, - "flgAnonymized", - { - accessor => "flg_anonymized", - data_type => "tinyint", - default_value => 0, - is_nullable => 1, - }, + "anonymized", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -1535,8 +1529,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-17 11:11:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZkPU/EUsZVXiRoQ1E8NMbw +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-16 20:48:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sttZE1wLs9TCWLRGIy5/bA __PACKAGE__->belongs_to( "guarantor", @@ -1545,7 +1539,7 @@ __PACKAGE__->belongs_to( ); __PACKAGE__->add_columns( - '+flgAnonymized' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, '+lost' => { is_boolean => 1 }, '+gonenoaddress' => { is_boolean => 1 } ); diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index dc20a65d4e..dac07d2586 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -448,12 +448,11 @@ __PACKAGE__->table("deletedborrowers"); data_type: 'mediumtext' is_nullable: 1 -=head2 flgAnonymized +=head2 anonymized - accessor: 'flg_anonymized' data_type: 'tinyint' default_value: 0 - is_nullable: 1 + is_nullable: 0 =cut @@ -645,18 +644,13 @@ __PACKAGE__->add_columns( { data_type => "integer", default_value => 0, is_nullable => 1 }, "overdrive_auth_token", { data_type => "mediumtext", is_nullable => 1 }, - "flgAnonymized", - { - accessor => "flg_anonymized", - data_type => "tinyint", - default_value => 0, - is_nullable => 1, - }, + "anonymized", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-17 11:11:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9XbNY+E7YqzsiUldTFg6Zg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-16 20:48:40 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:46CA3kENo1r+3/vsNrxcIQ # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.11.0