Bug 31212: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2023-05-12 15:23:08 -03:00
parent 1a5f418f7d
commit 1066751e4b
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 16 additions and 8 deletions

View File

@ -112,7 +112,7 @@ the date the item was last checked out
=head2 datelastseen
data_type: 'date'
data_type: 'datetime'
datetime_undef_if_invalid: 1
is_nullable: 1
@ -404,7 +404,11 @@ __PACKAGE__->add_columns(
"datelastborrowed",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
"datelastseen",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
{
data_type => "datetime",
datetime_undef_if_invalid => 1,
is_nullable => 1,
},
"stack",
{ data_type => "tinyint", is_nullable => 1 },
"notforloan",
@ -509,8 +513,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("itemnumber");
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-01 17:33:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RMuehNvH+0WSXxEurJks/g
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-12 18:18:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6TcVaUWoDdAGfBOr83ZOWQ
__PACKAGE__->add_columns(
'+exclude_from_local_holds_priority' => { is_boolean => 1 },

View File

@ -115,7 +115,7 @@ the date the item was last checked out/issued
=head2 datelastseen
data_type: 'date'
data_type: 'datetime'
datetime_undef_if_invalid: 1
is_nullable: 1
@ -418,7 +418,11 @@ __PACKAGE__->add_columns(
"datelastborrowed",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
"datelastseen",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
{
data_type => "datetime",
datetime_undef_if_invalid => 1,
is_nullable => 1,
},
"stack",
{ data_type => "tinyint", is_nullable => 1 },
"notforloan",
@ -939,8 +943,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-01 17:33:12
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:joGnGYWVILPsYHE9CQxHxg
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-12 18:18:47
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HMU2tnuIRypuatz/J5683A
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );