Bugzilla – Attachment 112168 Details for
Bug 24412
Attach waiting hold to desk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24412: Schema file DO NOT PUSH!
Bug-24412-Schema-file-DO-NOT-PUSH.patch (text/plain), 4.15 KB, created by
Nicolas Legrand
on 2020-10-22 11:39:58 UTC
(
hide
)
Description:
Bug 24412: Schema file DO NOT PUSH!
Filename:
MIME Type:
Creator:
Nicolas Legrand
Created:
2020-10-22 11:39:58 UTC
Size:
4.15 KB
patch
obsolete
>From 00fa87b53c89ebada4e4e3ef39bfa792c64d74f2 Mon Sep 17 00:00:00 2001 >From: Nicolas Legrand <nicolas.legrand@bulac.fr> >Date: Mon, 14 Sep 2020 18:53:45 +0200 >Subject: [PATCH] Bug 24412: Schema file DO NOT PUSH! > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Schema/Result/Desk.pm | 19 +++++++++++++++++-- > Koha/Schema/Result/OldReserve.pm | 11 +++++++++-- > Koha/Schema/Result/Reserve.pm | 32 ++++++++++++++++++++++++++++++-- > 3 files changed, 56 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/Desk.pm b/Koha/Schema/Result/Desk.pm >index a72be1b..5f4af8c 100644 >--- a/Koha/Schema/Result/Desk.pm >+++ b/Koha/Schema/Result/Desk.pm >@@ -83,9 +83,24 @@ __PACKAGE__->belongs_to( > { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, > ); > >+=head2 reserves > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-10-02 13:43:57 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IklOycKlChqv9Tftm8rjqA >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Reserve> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "reserves", >+ "Koha::Schema::Result::Reserve", >+ { "foreign.desk_id" => "self.desk_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2020-09-14 18:41:21 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hc4PhUNsnk6tkmh0oI790w > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm >index 2cc0e2f..5b48420 100644 >--- a/Koha/Schema/Result/OldReserve.pm >+++ b/Koha/Schema/Result/OldReserve.pm >@@ -52,6 +52,11 @@ __PACKAGE__->table("old_reserves"); > is_nullable: 1 > size: 10 > >+=head2 desk_id >+ >+ data_type: 'integer' >+ is_nullable: 1 >+ > =head2 notificationdate > > data_type: 'date' >@@ -169,6 +174,8 @@ __PACKAGE__->add_columns( > { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > "branchcode", > { data_type => "varchar", is_nullable => 1, size => 10 }, >+ "desk_id", >+ { data_type => "integer", is_nullable => 1 }, > "notificationdate", > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "reminderdate", >@@ -314,8 +321,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-31 14:16:48 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DnOerXRIsIGIRKl9I0HZUQ >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2020-09-14 18:41:21 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:27y0XaLBE4Jgf2sDxKdBIA > > __PACKAGE__->add_columns( > '+item_level_hold' => { is_boolean => 1 }, >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index 2d7b397..bd3b510 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -56,6 +56,12 @@ __PACKAGE__->table("reserves"); > is_nullable: 1 > size: 10 > >+=head2 desk_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ > =head2 notificationdate > > data_type: 'date' >@@ -183,6 +189,8 @@ __PACKAGE__->add_columns( > }, > "branchcode", > { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, >+ "desk_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > "notificationdate", > { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, > "reminderdate", >@@ -312,6 +320,26 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 desk >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::Desk> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "desk", >+ "Koha::Schema::Result::Desk", >+ { desk_id => "desk_id" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "CASCADE", >+ on_update => "CASCADE", >+ }, >+); >+ > =head2 itemnumber > > Type: belongs_to >@@ -353,8 +381,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-31 14:16:48 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:goRy3ZQWpGNmicok5Av37Q >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2020-09-14 18:41:21 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cFrUf7wFugFlTAOApDihFA > > __PACKAGE__->belongs_to( > "item", >-- >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 24412
:
97328
|
97329
|
97330
|
101625
|
101626
|
101627
|
101628
|
101629
|
101630
|
101721
|
101722
|
101723
|
101825
|
101884
|
101885
|
101886
|
101898
|
101899
|
101900
|
101955
|
101956
|
101957
|
106586
|
106648
|
110067
|
110068
|
110069
|
110070
|
110450
|
110451
|
110452
|
110453
|
110454
|
110455
|
110582
|
110583
|
110584
|
110585
|
110586
|
112046
|
112047
|
112048
|
112049
|
112050
|
112092
|
112099
|
112165
|
112166
|
112167
|
112168
|
112169
|
112170
|
112171
|
112172
|
112201
|
112202
|
112203
|
112204
|
112205
|
112206
|
112207
|
112208
|
112209
|
112210
|
112211
|
112212
|
112213
|
112214
|
112215
|
112216
|
112217
|
112218
|
112219
|
112264
|
112265
|
112266
|
112267
|
112268
|
112269
|
112270
|
112271
|
112272
|
112292
|
112293
|
113108
|
113109
|
113116
|
113228
|
113229
|
113230
|
113231
|
113232
|
113233
|
113234
|
113235
|
113236