Bug 8480: (RM followup) DBIx updates

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2015-05-18 11:24:12 -03:00
parent a0482e4172
commit fda60fad3a
2 changed files with 44 additions and 5 deletions

View File

@ -27,6 +27,7 @@ __PACKAGE__->table("auth_subfield_structure");
data_type: 'varchar'
default_value: (empty string)
is_foreign_key: 1
is_nullable: 0
size: 10
@ -133,7 +134,13 @@ __PACKAGE__->table("auth_subfield_structure");
__PACKAGE__->add_columns(
"authtypecode",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
{
data_type => "varchar",
default_value => "",
is_foreign_key => 1,
is_nullable => 0,
size => 10,
},
"tagfield",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
"tagsubfield",
@ -184,9 +191,26 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
=head1 RELATIONS
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:24BKrmX1lug68+rmXE1riA
=head2 authtypecode
Type: belongs_to
Related object: L<Koha::Schema::Result::AuthType>
=cut
__PACKAGE__->belongs_to(
"authtypecode",
"Koha::Schema::Result::AuthType",
{ authtypecode => "authtypecode" },
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-05-18 11:22:30
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ymm26DwMwBskOjIj1qhWFA
# You can replace this text with custom content, and it will be preserved on regeneration

View File

@ -76,6 +76,21 @@ __PACKAGE__->set_primary_key("authtypecode");
=head1 RELATIONS
=head2 auth_subfield_structures
Type: has_many
Related object: L<Koha::Schema::Result::AuthSubfieldStructure>
=cut
__PACKAGE__->has_many(
"auth_subfield_structures",
"Koha::Schema::Result::AuthSubfieldStructure",
{ "foreign.authtypecode" => "self.authtypecode" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 auth_tag_structures
Type: has_many
@ -92,8 +107,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sy0+bAJuYz5t9OVCq0Vo8Q
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-05-18 11:22:30
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FELYJXziUcU7+b/X8SaDwA
# You can replace this text with custom content, and it will be preserved on regeneration