Bugzilla – Attachment 88351 Details for
Bug 22729
flgAnonymized shouldn't be NULL and should be renamed anonymized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22729: [DO_NOT_PUSH] DBIC update
Bug-22729-DONOTPUSH-DBIC-update.patch (text/plain), 3.60 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-04-19 12:04:50 UTC
(
hide
)
Description:
Bug 22729: [DO_NOT_PUSH] DBIC update
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-04-19 12:04:50 UTC
Size:
3.60 KB
patch
obsolete
>From c704c5b72b918f809c947c54fcf6956b70c84445 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 17 Apr 2019 15:15:19 -0300 >Subject: [PATCH] Bug 22729: [DO_NOT_PUSH] DBIC update > >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 <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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</aqorder_users> -> 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.21.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22729
:
88222
|
88223
|
88224
|
88337
|
88338
|
88339
|
88340
|
88349
|
88350
|
88351
|
88352
|
88353
|
88692
|
88693
|
88694
|
88695
|
88696
|
88745