Bug 19532: (RM follow-up) Update DBIC Schema
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 15 Mar 2022 06:54:20 +0000 (20:54 -1000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 15 Mar 2022 08:45:52 +0000 (22:45 -1000)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Schema/Result/Borrower.pm
Koha/Schema/Result/Branchtransfer.pm
Koha/Schema/Result/Recall.pm

index 0cc33e2..d2b5c60 100644 (file)
@@ -1930,8 +1930,8 @@ Composing rels: L</user_permissions> -> permission
 __PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-25 00:33:23
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qPGKczsaKaLxxiNzZS5zdQ
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-15 06:51:43
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozDOfb67H7/GHLI0o4DdyA
 
 __PACKAGE__->has_many(
   "extended_attributes",
index 6f51ce7..365afd0 100644 (file)
@@ -103,13 +103,15 @@ any comments related to the transfer
 =head2 reason
 
   data_type: 'enum'
-  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","Recall","CancelRecall"]}
+  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","TransferCancellation","Recall","CancelRecall"]}
   is_nullable: 1
 
+what triggered the transfer
+
 =head2 cancellation_reason
 
   data_type: 'enum'
-  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","ItemLost","WrongTransfer"]}
+  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","ItemLost","WrongTransfer","Recall","CancelRecall"]}
   is_nullable: 1
 
 what triggered the transfer cancellation
@@ -183,6 +185,7 @@ __PACKAGE__->add_columns(
         "Reserve",
         "LostReserve",
         "CancelReserve",
+        "TransferCancellation",
         "Recall",
         "CancelRecall",
       ],
@@ -205,6 +208,8 @@ __PACKAGE__->add_columns(
         "CancelReserve",
         "ItemLost",
         "WrongTransfer",
+        "Recall",
+        "CancelRecall",
       ],
     },
     is_nullable => 1,
@@ -271,8 +276,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-10-14 15:07:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:APOPxPO4uRpPHgSEhXbnTw
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-15 06:51:43
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PRXo3jKKZT7MhzT1EbqpWg
 
 sub koha_object_class {
     'Koha::Item::Transfer';
index 3918157..0b53e38 100644 (file)
@@ -74,9 +74,12 @@ __PACKAGE__->table("recalls");
 
 =head2 status
 
-  data_type: 'varchar'
+  data_type: 'enum'
+  default_value: 'requested'
+  extra: {list => ["requested","overdue","waiting","in_transit","cancelled","expired","fulfilled"]}
   is_nullable: 1
-  size: 1
+
+Request status
 
 =head2 timestamp
 
@@ -106,6 +109,7 @@ __PACKAGE__->table("recalls");
 =head2 old
 
   data_type: 'tinyint'
+  default_value: 0
   is_nullable: 1
 
 =head2 item_level_recall
@@ -152,7 +156,22 @@ __PACKAGE__->add_columns(
   "priority",
   { data_type => "smallint", is_nullable => 1 },
   "status",
-  { data_type => "varchar", is_nullable => 1, size => 1 },
+  {
+    data_type => "enum",
+    default_value => "requested",
+    extra => {
+      list => [
+        "requested",
+        "overdue",
+        "waiting",
+        "in_transit",
+        "cancelled",
+        "expired",
+        "fulfilled",
+      ],
+    },
+    is_nullable => 1,
+  },
   "timestamp",
   {
     data_type => "timestamp",
@@ -175,7 +194,7 @@ __PACKAGE__->add_columns(
     is_nullable => 1,
   },
   "old",
-  { data_type => "tinyint", is_nullable => 1 },
+  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
   "item_level_recall",
   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
 );
@@ -265,8 +284,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-10-14 15:07:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3OJBkRJzqxZpuRp0GYGixw
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-15 06:51:43
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nG6sAMWzjgfD+r6aUsITzA
 
 __PACKAGE__->add_columns(
     '+old' => { is_boolean => 1 },