View | Details | Raw Unified | Return to bug 29125
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +12 lines)
Lines 1904-1912 Composing rels: L</aqorder_users> -> ordernumber Link Here
1904
1904
1905
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1905
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1906
1906
1907
=head2 permissions
1907
1908
1908
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-20 12:00:15
1909
Type: many_to_many
1909
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9g9WsdsdPINi2NP4H2A+CA
1910
1911
Composing rels: L</user_permissions> -> permission
1912
1913
=cut
1914
1915
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
1916
1917
1918
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-27 12:29:18
1919
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WFUCMh7pjbak1VwjWhut9w
1910
1920
1911
__PACKAGE__->add_columns(
1921
__PACKAGE__->add_columns(
1912
    '+anonymized'    => { is_boolean => 1 },
1922
    '+anonymized'    => { is_boolean => 1 },
(-)a/Koha/Schema/Result/Permission.pm (-2 / +12 lines)
Lines 108-116 __PACKAGE__->has_many( Link Here
108
  { cascade_copy => 0, cascade_delete => 0 },
108
  { cascade_copy => 0, cascade_delete => 0 },
109
);
109
);
110
110
111
=head2 borrowernumbers
111
112
112
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
113
Type: many_to_many
113
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ut3lzlxoPPoIIwmhJViV1Q
114
115
Composing rels: L</user_permissions> -> borrowernumber
116
117
=cut
118
119
__PACKAGE__->many_to_many("borrowernumbers", "user_permissions", "borrowernumber");
120
121
122
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-27 12:29:18
123
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IHwqiCz51ygMJfBpoC6WoQ
114
124
115
125
116
# You can replace this text with custom content, and it will be preserved on regeneration
126
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/UserPermission.pm (-11 / +21 lines)
Lines 41-47 __PACKAGE__->table("user_permissions"); Link Here
41
41
42
  data_type: 'varchar'
42
  data_type: 'varchar'
43
  is_foreign_key: 1
43
  is_foreign_key: 1
44
  is_nullable: 1
44
  is_nullable: 0
45
  size: 64
45
  size: 64
46
46
47
=cut
47
=cut
Lines 62-70 __PACKAGE__->add_columns( Link Here
62
    is_nullable    => 0,
62
    is_nullable    => 0,
63
  },
63
  },
64
  "code",
64
  "code",
65
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 64 },
65
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 },
66
);
66
);
67
67
68
=head1 PRIMARY KEY
69
70
=over 4
71
72
=item * L</borrowernumber>
73
74
=item * L</module_bit>
75
76
=item * L</code>
77
78
=back
79
80
=cut
81
82
__PACKAGE__->set_primary_key("borrowernumber", "module_bit", "code");
83
68
=head1 RELATIONS
84
=head1 RELATIONS
69
85
70
=head2 borrowernumber
86
=head2 borrowernumber
Lines 94-110 __PACKAGE__->belongs_to( Link Here
94
  "permission",
110
  "permission",
95
  "Koha::Schema::Result::Permission",
111
  "Koha::Schema::Result::Permission",
96
  { code => "code", module_bit => "module_bit" },
112
  { code => "code", module_bit => "module_bit" },
97
  {
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
98
    is_deferrable => 1,
99
    join_type     => "LEFT",
100
    on_delete     => "CASCADE",
101
    on_update     => "CASCADE",
102
  },
103
);
114
);
104
115
105
116
106
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
117
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-09-27 12:42:45
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dMAYxSmVQ1cVKxmnMiMkg
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zRwFHwJjFH30DSHuLBjwvQ
108
119
109
120
110
# You can replace this text with custom content, and it will be preserved on regeneration
121
# You can replace this text with custom content, and it will be preserved on regeneration
111
- 

Return to bug 29125