From ae09703dbf596f44aab522bc16e325984936de74 Mon Sep 17 00:00:00 2001 From: Jan Kissig Date: Mon, 16 Dec 2024 10:05:28 +0000 Subject: [PATCH] Bug 35380: [DO NOT PUSH] dbic --- Koha/Schema/Result/RecordSource.pm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/RecordSource.pm b/Koha/Schema/Result/RecordSource.pm index c9b8ec6129..2d356a7e75 100644 --- a/Koha/Schema/Result/RecordSource.pm +++ b/Koha/Schema/Result/RecordSource.pm @@ -46,6 +46,12 @@ User defined name for the record source If records from this source can be edited +=head2 is_system + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + =cut __PACKAGE__->add_columns( @@ -55,6 +61,8 @@ __PACKAGE__->add_columns( { data_type => "text", is_nullable => 0 }, "can_be_edited", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "is_system", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -69,6 +77,20 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("record_source_id"); +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->add_unique_constraint("name", ["name"]); + =head1 RELATIONS =head2 biblio_metadatas @@ -102,8 +124,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-01-24 18:05:50 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WX72aRYhWBK9bQWr9AJk2A +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-16 09:34:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1jhb17Jilqs2wUjUWbhjyA __PACKAGE__->add_columns( '+can_be_edited' => { is_boolean => 1 }, -- 2.39.5