Bugzilla – Attachment 45814 Details for
Bug 15084
Move the currency related code to Koha::Acquisition::Currenc[y|ies]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15084: DBIx::Class - Shema changes
Bug-15084-DBIxClass---Shema-changes.patch (text/plain), 1.80 KB, created by
Josef Moravec
on 2015-12-18 10:19:09 UTC
(
hide
)
Description:
Bug 15084: DBIx::Class - Shema changes
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2015-12-18 10:19:09 UTC
Size:
1.80 KB
patch
obsolete
>From e018d2a0c183f5a58d2ef9170b35a7e79dd6279c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 17 Dec 2015 10:57:48 +0000 >Subject: [PATCH] Bug 15084: DBIx::Class - Shema changes > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Schema/Result/Currency.pm | 27 +++++++++++++++++++++++++-- > 1 file changed, 25 insertions(+), 2 deletions(-) > >diff --git a/Koha/Schema/Result/Currency.pm b/Koha/Schema/Result/Currency.pm >index 594ebf1..82f68f3 100644 >--- a/Koha/Schema/Result/Currency.pm >+++ b/Koha/Schema/Result/Currency.pm >@@ -60,6 +60,12 @@ __PACKAGE__->table("currency"); > data_type: 'tinyint' > is_nullable: 1 > >+=head2 archived >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -80,6 +86,8 @@ __PACKAGE__->add_columns( > { data_type => "float", is_nullable => 1, size => [15, 5] }, > "active", > { data_type => "tinyint", is_nullable => 1 }, >+ "archived", >+ { data_type => "tinyint", default_value => 0, is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -126,9 +134,24 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 aqorders >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Aqorder> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "aqorders", >+ "Koha::Schema::Result::Aqorder", >+ { "foreign.currency" => "self.currency" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-04 22:05:05 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MqgYbFC8CTfcBHyAiIcdVA >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-17 10:57:24 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B9JY/pDkp8icT7m0xDDKAA > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >2.1.4
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 15084
:
44162
|
44163
|
44164
|
44165
|
44166
|
44167
|
44168
|
45690
|
45691
|
45692
|
45693
|
45694
|
45695
|
45696
|
45759
|
45761
|
45807
|
45808
|
45809
|
45810
|
45811
|
45812
|
45813
|
45814
|
47213
|
47214
|
47215
|
47216
|
47217
|
47218
|
47219
|
47220
|
47221
|
48594
|
48595
|
48596
|
48597
|
48598
|
48599
|
48600
|
48601
|
48602
|
48603
|
48703
|
48747
|
48772
|
48783
|
48858