Bug 19889: set exclude_from_local_holds_priority columns as boolean in schema
[srvgit] / Koha / Schema / Result / Reserve.pm
index 3a56d68..2d7b397 100644 (file)
@@ -74,6 +74,12 @@ __PACKAGE__->table("reserves");
   datetime_undef_if_invalid: 1
   is_nullable: 1
 
+=head2 cancellation_reason
+
+  data_type: 'varchar'
+  is_nullable: 1
+  size: 80
+
 =head2 reservenotes
 
   data_type: 'longtext'
@@ -82,7 +88,8 @@ __PACKAGE__->table("reserves");
 =head2 priority
 
   data_type: 'smallint'
-  is_nullable: 1
+  default_value: 1
+  is_nullable: 0
 
 =head2 found
 
@@ -147,6 +154,12 @@ __PACKAGE__->table("reserves");
   default_value: 0
   is_nullable: 0
 
+=head2 non_priority
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -176,10 +189,12 @@ __PACKAGE__->add_columns(
   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "cancellationdate",
   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
+  "cancellation_reason",
+  { data_type => "varchar", is_nullable => 1, size => 80 },
   "reservenotes",
   { data_type => "longtext", is_nullable => 1 },
   "priority",
-  { data_type => "smallint", is_nullable => 1 },
+  { data_type => "smallint", default_value => 1, is_nullable => 0 },
   "found",
   { data_type => "varchar", is_nullable => 1, size => 1 },
   "timestamp",
@@ -214,6 +229,8 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
   "item_level_hold",
   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+  "non_priority",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
 );
 
 =head1 PRIMARY KEY
@@ -336,8 +353,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:48
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pc5zh5iFbdwko5KS51Y9Uw
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-31 14:16:48
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:goRy3ZQWpGNmicok5Av37Q
 
 __PACKAGE__->belongs_to(
   "item",
@@ -366,7 +383,8 @@ __PACKAGE__->belongs_to(
 __PACKAGE__->add_columns(
     '+item_level_hold' => { is_boolean => 1 },
     '+lowestPriority'  => { is_boolean => 1 },
-    '+suspend'         => { is_boolean => 1 }
+    '+suspend'         => { is_boolean => 1 },
+    '+non_priority'    => { is_boolean => 1 }
 );
 
 sub koha_object_class {