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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +16 lines)
Lines 427-432 __PACKAGE__->table("borrowers"); Link Here
427
  datetime_undef_if_invalid: 1
427
  datetime_undef_if_invalid: 1
428
  is_nullable: 1
428
  is_nullable: 1
429
429
430
=head2 lang
431
432
  data_type: 'varchar'
433
  default_value: 'default'
434
  is_nullable: 0
435
  size: 25
436
430
=head2 overdrive_auth_token
437
=head2 overdrive_auth_token
431
438
432
  data_type: 'text'
439
  data_type: 'text'
Lines 621-626 __PACKAGE__->add_columns( Link Here
621
    datetime_undef_if_invalid => 1,
628
    datetime_undef_if_invalid => 1,
622
    is_nullable => 1,
629
    is_nullable => 1,
623
  },
630
  },
631
  "lang",
632
  {
633
    data_type => "varchar",
634
    default_value => "default",
635
    is_nullable => 0,
636
    size => 25,
637
  },
624
  "overdrive_auth_token",
638
  "overdrive_auth_token",
625
  { data_type => "text", is_nullable => 1 },
639
  { data_type => "text", is_nullable => 1 },
626
);
640
);
Lines 1341-1348 Composing rels: L</aqorder_users> -> ordernumber Link Here
1341
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1355
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1342
1356
1343
1357
1344
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-02-10 07:30:06
1358
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 21:42:48
1345
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:35WEsGd5LmkZ3bB486M1yA
1359
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dchVNO0KEo638glUkcMLkg
1346
1360
1347
__PACKAGE__->belongs_to(
1361
__PACKAGE__->belongs_to(
1348
    "guarantor",
1362
    "guarantor",
(-)a/Koha/Schema/Result/Deletedborrower.pm (-2 / +16 lines)
Lines 424-429 __PACKAGE__->table("deletedborrowers"); Link Here
424
  datetime_undef_if_invalid: 1
424
  datetime_undef_if_invalid: 1
425
  is_nullable: 1
425
  is_nullable: 1
426
426
427
=head2 lang
428
429
  data_type: 'varchar'
430
  default_value: 'default'
431
  is_nullable: 0
432
  size: 25
433
427
=head2 overdrive_auth_token
434
=head2 overdrive_auth_token
428
435
429
  data_type: 'text'
436
  data_type: 'text'
Lines 606-618 __PACKAGE__->add_columns( Link Here
606
    datetime_undef_if_invalid => 1,
613
    datetime_undef_if_invalid => 1,
607
    is_nullable => 1,
614
    is_nullable => 1,
608
  },
615
  },
616
  "lang",
617
  {
618
    data_type => "varchar",
619
    default_value => "default",
620
    is_nullable => 0,
621
    size => 25,
622
  },
609
  "overdrive_auth_token",
623
  "overdrive_auth_token",
610
  { data_type => "text", is_nullable => 1 },
624
  { data_type => "text", is_nullable => 1 },
611
);
625
);
612
626
613
627
614
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-02-10 07:30:06
628
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 21:29:33
615
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tq4JDUSFKuU5K69TTVSkVg
629
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sqSjOzPoHG6b9TNRE669DA
616
630
617
631
618
# You can replace this text with custom code or comments, and it will be preserved on regeneration
632
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Letter.pm (-22 / +19 lines)
Lines 77-82 __PACKAGE__->table("letter"); Link Here
77
  is_nullable: 0
77
  is_nullable: 0
78
  size: 20
78
  size: 20
79
79
80
=head2 lang
81
82
  data_type: 'varchar'
83
  default_value: 'default'
84
  is_nullable: 0
85
  size: 25
86
80
=cut
87
=cut
81
88
82
__PACKAGE__->add_columns(
89
__PACKAGE__->add_columns(
Lines 102-107 __PACKAGE__->add_columns( Link Here
102
    is_nullable => 0,
109
    is_nullable => 0,
103
    size => 20,
110
    size => 20,
104
  },
111
  },
112
  "lang",
113
  {
114
    data_type => "varchar",
115
    default_value => "default",
116
    is_nullable => 0,
117
    size => 25,
118
  },
105
);
119
);
106
120
107
=head1 PRIMARY KEY
121
=head1 PRIMARY KEY
Lines 116-126 __PACKAGE__->add_columns( Link Here
116
130
117
=item * L</message_transport_type>
131
=item * L</message_transport_type>
118
132
133
=item * L</lang>
134
119
=back
135
=back
120
136
121
=cut
137
=cut
122
138
123
__PACKAGE__->set_primary_key("module", "code", "branchcode", "message_transport_type");
139
__PACKAGE__->set_primary_key("module", "code", "branchcode", "message_transport_type", "lang");
124
140
125
=head1 RELATIONS
141
=head1 RELATIONS
126
142
Lines 139-166 __PACKAGE__->belongs_to( Link Here
139
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
155
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
140
);
156
);
141
157
142
=head2 message_transports
143
144
Type: has_many
145
146
Related object: L<Koha::Schema::Result::MessageTransport>
147
148
=cut
149
150
__PACKAGE__->has_many(
151
  "message_transports",
152
  "Koha::Schema::Result::MessageTransport",
153
  {
154
    "foreign.branchcode"    => "self.branchcode",
155
    "foreign.letter_code"   => "self.code",
156
    "foreign.letter_module" => "self.module",
157
  },
158
  { cascade_copy => 0, cascade_delete => 0 },
159
);
160
161
158
162
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-02 18:04:32
159
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 21:29:34
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HFUQ+/BKlweHglzOlm0lUQ
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A9wpcu1LVyagxvkrqJMpLw
164
161
165
162
166
# You can replace this text with custom content, and it will be preserved on regeneration
163
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/MessageTransport.pm (-46 / +5 lines)
Lines 46-52 __PACKAGE__->table("message_transports"); Link Here
46
46
47
  data_type: 'varchar'
47
  data_type: 'varchar'
48
  default_value: (empty string)
48
  default_value: (empty string)
49
  is_foreign_key: 1
50
  is_nullable: 0
49
  is_nullable: 0
51
  size: 20
50
  size: 20
52
51
Lines 54-60 __PACKAGE__->table("message_transports"); Link Here
54
53
55
  data_type: 'varchar'
54
  data_type: 'varchar'
56
  default_value: (empty string)
55
  default_value: (empty string)
57
  is_foreign_key: 1
58
  is_nullable: 0
56
  is_nullable: 0
59
  size: 20
57
  size: 20
60
58
Lines 62-68 __PACKAGE__->table("message_transports"); Link Here
62
60
63
  data_type: 'varchar'
61
  data_type: 'varchar'
64
  default_value: (empty string)
62
  default_value: (empty string)
65
  is_foreign_key: 1
66
  is_nullable: 0
63
  is_nullable: 0
67
  size: 10
64
  size: 10
68
65
Lines 76-104 __PACKAGE__->add_columns( Link Here
76
  "is_digest",
73
  "is_digest",
77
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
74
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
78
  "letter_module",
75
  "letter_module",
79
  {
76
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
80
    data_type => "varchar",
81
    default_value => "",
82
    is_foreign_key => 1,
83
    is_nullable => 0,
84
    size => 20,
85
  },
86
  "letter_code",
77
  "letter_code",
87
  {
78
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
88
    data_type => "varchar",
89
    default_value => "",
90
    is_foreign_key => 1,
91
    is_nullable => 0,
92
    size => 20,
93
  },
94
  "branchcode",
79
  "branchcode",
95
  {
80
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
96
    data_type => "varchar",
97
    default_value => "",
98
    is_foreign_key => 1,
99
    is_nullable => 0,
100
    size => 10,
101
  },
102
);
81
);
103
82
104
=head1 PRIMARY KEY
83
=head1 PRIMARY KEY
Lines 119-143 __PACKAGE__->set_primary_key("message_attribute_id", "message_transport_type", " Link Here
119
98
120
=head1 RELATIONS
99
=head1 RELATIONS
121
100
122
=head2 letter
123
124
Type: belongs_to
125
126
Related object: L<Koha::Schema::Result::Letter>
127
128
=cut
129
130
__PACKAGE__->belongs_to(
131
  "letter",
132
  "Koha::Schema::Result::Letter",
133
  {
134
    branchcode => "branchcode",
135
    code => "letter_code",
136
    module => "letter_module",
137
  },
138
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
139
);
140
141
=head2 message_attribute
101
=head2 message_attribute
142
102
143
Type: belongs_to
103
Type: belongs_to
Lines 169-176 __PACKAGE__->belongs_to( Link Here
169
);
129
);
170
130
171
131
172
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
132
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-23 21:42:48
173
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P4Bsq0A7/imUhRBRnD5HrQ
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RYvCEp0euH7L07OBlttqPw
174
134
175
135
176
# You can replace this text with custom content, and it will be preserved on regeneration
136
# You can replace this text with custom content, and it will be preserved on regeneration
177
- 

Return to bug 17762