Bugzilla – Attachment 28034 Details for
Bug 6254
Set default for privacy by patron category
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6254 [2] - Update Schema File
Bug-6254-2---Update-Schema-File.patch (text/plain), 2.65 KB, created by
Kyle M Hall
on 2014-05-07 17:51:29 UTC
(
hide
)
Description:
Bug 6254 [2] - Update Schema File
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2014-05-07 17:51:29 UTC
Size:
2.65 KB
patch
obsolete
>From 87607c6b1f07a34a91536ff5782d7a5d83d0b6ac Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 7 May 2014 12:15:57 -0400 >Subject: [PATCH] Bug 6254 [2] - Update Schema File > >--- > Koha/Schema/Result/Category.pm | 44 +++++++++++++++++++-------------------- > 1 files changed, 21 insertions(+), 23 deletions(-) > >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index 7052486..139ed95 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -1,21 +1,17 @@ >-use utf8; > package Koha::Schema::Result::Category; > > # Created by DBIx::Class::Schema::Loader > # DO NOT MODIFY THE FIRST PART OF THIS FILE > >-=head1 NAME >- >-Koha::Schema::Result::Category >- >-=cut >- > use strict; > use warnings; > > use base 'DBIx::Class::Core'; > >-=head1 TABLE: C<categories> >+ >+=head1 NAME >+ >+Koha::Schema::Result::Category > > =cut > >@@ -43,7 +39,6 @@ __PACKAGE__->table("categories"); > =head2 enrolmentperioddate > > data_type: 'date' >- datetime_undef_if_invalid: 1 > is_nullable: 1 > > =head2 upperagelimit >@@ -108,6 +103,13 @@ __PACKAGE__->table("categories"); > default_value: -1 > is_nullable: 0 > >+=head2 default_privacy >+ >+ data_type: 'enum' >+ default_value: 'default' >+ extra: {list => ["default","never","forever"]} >+ is_nullable: 0 >+ > =cut > > __PACKAGE__->add_columns( >@@ -118,7 +120,7 @@ __PACKAGE__->add_columns( > "enrolmentperiod", > { data_type => "smallint", is_nullable => 1 }, > "enrolmentperioddate", >- { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ { data_type => "date", is_nullable => 1 }, > "upperagelimit", > { data_type => "smallint", is_nullable => 1 }, > "dateofbirthrequired", >@@ -141,18 +143,14 @@ __PACKAGE__->add_columns( > { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, > "blockexpiredpatronopacactions", > { data_type => "tinyint", default_value => -1, is_nullable => 0 }, >+ "default_privacy", >+ { >+ data_type => "enum", >+ default_value => "default", >+ extra => { list => ["default", "never", "forever"] }, >+ is_nullable => 0, >+ }, > ); >- >-=head1 PRIMARY KEY >- >-=over 4 >- >-=item * L</categorycode> >- >-=back >- >-=cut >- > __PACKAGE__->set_primary_key("categorycode"); > > =head1 RELATIONS >@@ -233,8 +231,8 @@ __PACKAGE__->might_have( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-05 02:00:18 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:21IkmwMfRevsRHU9ezaIKg >+# Created by DBIx::Class::Schema::Loader v0.07000 @ 2014-05-07 12:15:12 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CwCE9qxkWafuO9btYXWZeg > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >1.7.2.5
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 6254
:
19131
|
19132
|
19133
|
19272
|
19631
|
23309
|
23310
|
23317
|
23516
|
23520
|
23983
|
23985
|
23986
|
23987
|
24606
|
24696
|
24697
|
24698
|
24699
|
28033
| 28034 |
28035
|
28036