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

(-)a/Koha/Schema/Result/BorrowerDebarment.pm (-12 / +22 lines)
Lines 49-60 expiration date of the restriction Link Here
49
49
50
=head2 type
50
=head2 type
51
51
52
  data_type: 'enum'
52
  data_type: 'varchar'
53
  default_value: 'MANUAL'
53
  is_foreign_key: 1
54
  extra: {list => ["SUSPENSION","OVERDUES","MANUAL","DISCHARGE"]}
55
  is_nullable: 0
54
  is_nullable: 0
55
  size: 50
56
56
57
type of restriction
57
type of restriction, FK to debarment_types.code
58
58
59
=head2 comment
59
=head2 comment
60
60
Lines 97-108 __PACKAGE__->add_columns( Link Here
97
  "expiration",
97
  "expiration",
98
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
98
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
99
  "type",
99
  "type",
100
  {
100
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 50 },
101
    data_type => "enum",
102
    default_value => "MANUAL",
103
    extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL", "DISCHARGE"] },
104
    is_nullable => 0,
105
  },
106
  "comment",
101
  "comment",
107
  { data_type => "mediumtext", is_nullable => 1 },
102
  { data_type => "mediumtext", is_nullable => 1 },
108
  "manager_id",
103
  "manager_id",
Lines 151-159 __PACKAGE__->belongs_to( Link Here
151
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
146
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
152
);
147
);
153
148
149
=head2 type
150
151
Type: belongs_to
152
153
Related object: L<Koha::Schema::Result::DebarmentType>
154
155
=cut
156
157
__PACKAGE__->belongs_to(
158
  "type",
159
  "Koha::Schema::Result::DebarmentType",
160
  { code => "type" },
161
  { is_deferrable => 1, on_delete => "NO ACTION", on_update => "CASCADE" },
162
);
163
154
164
155
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
165
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-04 11:05:19
156
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vQL2xYGB5GI//2l4FdIR9w
166
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bxRDwUTv9cZVpDfNDatosQ
157
167
158
168
159
# You can replace this text with custom code or comments, and it will be preserved on regeneration
169
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DebarmentType.pm (-13 / +4 lines)
Lines 40-52 __PACKAGE__->table("debarment_types"); Link Here
40
  default_value: 0
40
  default_value: 0
41
  is_nullable: 0
41
  is_nullable: 0
42
42
43
=head2 default_value
43
=head2 is_default
44
45
  data_type: 'tinyint'
46
  default_value: 0
47
  is_nullable: 0
48
49
=head2 can_be_added_manually
50
44
51
  data_type: 'tinyint'
45
  data_type: 'tinyint'
52
  default_value: 0
46
  default_value: 0
Lines 61-69 __PACKAGE__->add_columns( Link Here
61
  { data_type => "text", is_nullable => 0 },
55
  { data_type => "text", is_nullable => 0 },
62
  "is_system",
56
  "is_system",
63
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
57
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
64
  "default_value",
58
  "is_default",
65
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
66
  "can_be_added_manually",
67
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
59
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
68
);
60
);
69
61
Lines 97-104 __PACKAGE__->has_many( Link Here
97
);
89
);
98
90
99
91
100
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-03 12:20:02
92
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-04 11:05:19
101
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VBzvGmNZebCYqcjaR7ETPg
93
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cRSViJItfpT3mxCX82/9eQ
102
94
103
sub koha_object_class {
95
sub koha_object_class {
104
    'Koha::RestrictionType';
96
    'Koha::RestrictionType';
105
- 

Return to bug 23681