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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +30 lines)
Lines 389-394 __PACKAGE__->table("borrowers"); Link Here
389
  is_nullable: 1
389
  is_nullable: 1
390
  size: 50
390
  size: 50
391
391
392
=head2 sms_provider_id
393
394
  data_type: 'integer'
395
  is_foreign_key: 1
396
  is_nullable: 1
397
392
=head2 privacy
398
=head2 privacy
393
399
394
  data_type: 'integer'
400
  data_type: 'integer'
Lines 564-569 __PACKAGE__->add_columns( Link Here
564
  { data_type => "varchar", is_nullable => 1, size => 50 },
570
  { data_type => "varchar", is_nullable => 1, size => 50 },
565
  "smsalertnumber",
571
  "smsalertnumber",
566
  { data_type => "varchar", is_nullable => 1, size => 50 },
572
  { data_type => "varchar", is_nullable => 1, size => 50 },
573
  "sms_provider_id",
574
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
567
  "privacy",
575
  "privacy",
568
  { data_type => "integer", default_value => 1, is_nullable => 0 },
576
  { data_type => "integer", default_value => 1, is_nullable => 0 },
569
  "privacy_guarantor_checkouts",
577
  "privacy_guarantor_checkouts",
Lines 1030-1035 __PACKAGE__->has_many( Link Here
1030
  { cascade_copy => 0, cascade_delete => 0 },
1038
  { cascade_copy => 0, cascade_delete => 0 },
1031
);
1039
);
1032
1040
1041
=head2 sms_provider
1042
1043
Type: belongs_to
1044
1045
Related object: L<Koha::Schema::Result::SmsProvider>
1046
1047
=cut
1048
1049
__PACKAGE__->belongs_to(
1050
  "sms_provider",
1051
  "Koha::Schema::Result::SmsProvider",
1052
  { id => "sms_provider_id" },
1053
  {
1054
    is_deferrable => 1,
1055
    join_type     => "LEFT",
1056
    on_delete     => "RESTRICT",
1057
    on_update     => "RESTRICT",
1058
  },
1059
);
1060
1033
=head2 subscriptionroutinglists
1061
=head2 subscriptionroutinglists
1034
1062
1035
Type: has_many
1063
Type: has_many
Lines 1176-1183 Composing rels: L</aqorder_users> -> ordernumber Link Here
1176
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1204
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1177
1205
1178
1206
1179
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 11:59:52
1207
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-31 16:48:38
1180
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0nIBbkzhb+Yfp6qpSLo51A
1208
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dd1tdtsFTruFwsmCZU6ogQ
1181
1209
1182
__PACKAGE__->belongs_to(
1210
__PACKAGE__->belongs_to(
1183
    "guarantor",
1211
    "guarantor",
(-)a/Koha/Schema/Result/SmsProvider.pm (-1 / +104 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::SmsProvider;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::SmsProvider
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<sms_providers>
19
20
=cut
21
22
__PACKAGE__->table("sms_providers");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 name
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 255
37
38
=head2 domain
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 255
43
44
=cut
45
46
__PACKAGE__->add_columns(
47
  "id",
48
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49
  "name",
50
  { data_type => "varchar", is_nullable => 0, size => 255 },
51
  "domain",
52
  { data_type => "varchar", is_nullable => 0, size => 255 },
53
);
54
55
=head1 PRIMARY KEY
56
57
=over 4
58
59
=item * L</id>
60
61
=back
62
63
=cut
64
65
__PACKAGE__->set_primary_key("id");
66
67
=head1 UNIQUE CONSTRAINTS
68
69
=head2 C<name>
70
71
=over 4
72
73
=item * L</name>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->add_unique_constraint("name", ["name"]);
80
81
=head1 RELATIONS
82
83
=head2 borrowers
84
85
Type: has_many
86
87
Related object: L<Koha::Schema::Result::Borrower>
88
89
=cut
90
91
__PACKAGE__->has_many(
92
  "borrowers",
93
  "Koha::Schema::Result::Borrower",
94
  { "foreign.sms_provider_id" => "self.id" },
95
  { cascade_copy => 0, cascade_delete => 0 },
96
);
97
98
99
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-31 16:48:38
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3LGi1zy3YN2Amin+bhXlA
101
102
103
# You can replace this text with custom code or comments, and it will be preserved on regeneration
104
1;

Return to bug 9021