Bug 14233: DBIC schema changes

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2021-04-07 14:56:12 +02:00 committed by Jonathan Druart
parent c32d46b854
commit f5267bae7e

View file

@ -23,6 +23,14 @@ __PACKAGE__->table("letter");
=head1 ACCESSORS
=head2 id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
primary key identifier
=head2 module
data_type: 'varchar'
@ -114,6 +122,8 @@ last modification
=cut
__PACKAGE__->add_columns(
"id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"module",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
"code",
@ -156,6 +166,20 @@ __PACKAGE__->add_columns(
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id");
=head1 UNIQUE CONSTRAINTS
=head2 C<letter_uniq_1>
=over 4
=item * L</module>
=item * L</code>
@ -170,7 +194,10 @@ __PACKAGE__->add_columns(
=cut
__PACKAGE__->set_primary_key("module", "code", "branchcode", "message_transport_type", "lang");
__PACKAGE__->add_unique_constraint(
"letter_uniq_1",
["module", "code", "branchcode", "message_transport_type", "lang"],
);
=head1 RELATIONS
@ -190,8 +217,8 @@ __PACKAGE__->belongs_to(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KsiHfYDT9WzuiTET1Y/BhA
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-02-11 12:33:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qqdTVEicMu5rHppY5qsEuA
sub koha_object_class {
'Koha::Notice::Template';