Bug 35919: DBIC schema update

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-04-26 13:30:02 +00:00
parent 0084f1309c
commit 780ca530c6
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
4 changed files with 72 additions and 12 deletions

View file

@ -59,6 +59,14 @@ __PACKAGE__->table("biblio_metadata");
default_value: current_timestamp default_value: current_timestamp
is_nullable: 0 is_nullable: 0
=head2 record_source_id
data_type: 'integer'
is_foreign_key: 1
is_nullable: 1
The record source for the metadata
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
@ -79,6 +87,8 @@ __PACKAGE__->add_columns(
default_value => \"current_timestamp", default_value => \"current_timestamp",
is_nullable => 0, is_nullable => 0,
}, },
"record_source_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
); );
=head1 PRIMARY KEY =head1 PRIMARY KEY
@ -131,9 +141,29 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
); );
=head2 record_source
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16 Type: belongs_to
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FJk/YOw8Y/QRmmPPL3G5qQ
Related object: L<Koha::Schema::Result::RecordSource>
=cut
__PACKAGE__->belongs_to(
"record_source",
"Koha::Schema::Result::RecordSource",
{ record_source_id => "record_source_id" },
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
},
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:23:00
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pQ87jRoTMpqkm8GPh/tpHQ
sub koha_object_class { sub koha_object_class {
'Koha::Biblio::Metadata'; 'Koha::Biblio::Metadata';

View file

@ -59,6 +59,14 @@ __PACKAGE__->table("deletedbiblio_metadata");
default_value: current_timestamp default_value: current_timestamp
is_nullable: 0 is_nullable: 0
=head2 record_source_id
data_type: 'integer'
is_foreign_key: 1
is_nullable: 1
The record source for the metadata
=cut =cut
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
@ -79,6 +87,8 @@ __PACKAGE__->add_columns(
default_value => \"current_timestamp", default_value => \"current_timestamp",
is_nullable => 0, is_nullable => 0,
}, },
"record_source_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
); );
=head1 PRIMARY KEY =head1 PRIMARY KEY
@ -131,9 +141,29 @@ __PACKAGE__->belongs_to(
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
); );
=head2 record_source
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-01-30 11:34:16 Type: belongs_to
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JCOh+FSSTgPlC8lMJOdOOA
Related object: L<Koha::Schema::Result::RecordSource>
=cut
__PACKAGE__->belongs_to(
"record_source",
"Koha::Schema::Result::RecordSource",
{ record_source_id => "record_source_id" },
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "CASCADE",
on_update => "CASCADE",
},
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:23:01
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n/IgiGmKu1znMd78vA+pVw
sub koha_objects_class { sub koha_objects_class {
'Koha::Old::Biblio::Metadatas'; 'Koha::Old::Biblio::Metadatas';

View file

@ -223,7 +223,7 @@ number of times this item has been renewed
data_type: 'smallint' data_type: 'smallint'
is_nullable: 1 is_nullable: 1
number of times this item has been recorded for localuse number of times this item has been recorded as localuse
=head2 reserves =head2 reserves
@ -461,7 +461,7 @@ __PACKAGE__->add_columns(
"issues", "issues",
{ data_type => "smallint", default_value => 0, is_nullable => 1 }, { data_type => "smallint", default_value => 0, is_nullable => 1 },
"renewals", "renewals",
{ data_type => "smallint", default_value => 0, is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"localuse", "localuse",
{ data_type => "smallint", is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"reserves", "reserves",
@ -532,8 +532,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("itemnumber"); __PACKAGE__->set_primary_key("itemnumber");
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-10-02 11:06:29 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:26:37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Afgr1jl6aeSy/rS9RJGq2g # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:13COB8Ty6QDInmxN/zvEig
__PACKAGE__->add_columns( __PACKAGE__->add_columns(
'+bookable' => { is_boolean => 1 }, '+bookable' => { is_boolean => 1 },

View file

@ -226,7 +226,7 @@ number of times this item has been renewed
data_type: 'smallint' data_type: 'smallint'
is_nullable: 1 is_nullable: 1
number of times this item has been recorded for localuse number of times this item has been recorded as localuse
=head2 reserves =head2 reserves
@ -475,7 +475,7 @@ __PACKAGE__->add_columns(
"issues", "issues",
{ data_type => "smallint", default_value => 0, is_nullable => 1 }, { data_type => "smallint", default_value => 0, is_nullable => 1 },
"renewals", "renewals",
{ data_type => "smallint", default_value => 0, is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"localuse", "localuse",
{ data_type => "smallint", is_nullable => 1 }, { data_type => "smallint", is_nullable => 1 },
"reserves", "reserves",
@ -992,8 +992,8 @@ __PACKAGE__->might_have(
); );
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-11-03 14:18:06 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-04-26 13:26:37
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0jargxEw3HZOK57+ijsMHA # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8BzPWv3gqdhfLNz+Il93cw
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );