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

(-)a/Koha/Schema/Result/EdifactEan.pm (-6 / +36 lines)
Lines 23-33 __PACKAGE__->table("edifact_ean"); Link Here
23
23
24
=head1 ACCESSORS
24
=head1 ACCESSORS
25
25
26
=head2 ee_id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
26
=head2 branchcode
33
=head2 branchcode
27
34
28
  data_type: 'varchar'
35
  data_type: 'varchar'
29
  is_foreign_key: 1
36
  is_foreign_key: 1
30
  is_nullable: 0
37
  is_nullable: 1
31
  size: 10
38
  size: 10
32
39
33
=head2 ean
40
=head2 ean
Lines 46-59 __PACKAGE__->table("edifact_ean"); Link Here
46
=cut
53
=cut
47
54
48
__PACKAGE__->add_columns(
55
__PACKAGE__->add_columns(
56
  "ee_id",
57
  {
58
    data_type => "integer",
59
    extra => { unsigned => 1 },
60
    is_auto_increment => 1,
61
    is_nullable => 0,
62
  },
49
  "branchcode",
63
  "branchcode",
50
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
64
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
51
  "ean",
65
  "ean",
52
  { data_type => "varchar", is_nullable => 0, size => 15 },
66
  { data_type => "varchar", is_nullable => 0, size => 15 },
53
  "id_code_qualifier",
67
  "id_code_qualifier",
54
  { data_type => "varchar", default_value => 14, is_nullable => 0, size => 3 },
68
  { data_type => "varchar", default_value => 14, is_nullable => 0, size => 3 },
55
);
69
);
56
70
71
=head1 PRIMARY KEY
72
73
=over 4
74
75
=item * L</ee_id>
76
77
=back
78
79
=cut
80
81
__PACKAGE__->set_primary_key("ee_id");
82
57
=head1 RELATIONS
83
=head1 RELATIONS
58
84
59
=head2 branchcode
85
=head2 branchcode
Lines 68-79 __PACKAGE__->belongs_to( Link Here
68
  "branchcode",
94
  "branchcode",
69
  "Koha::Schema::Result::Branch",
95
  "Koha::Schema::Result::Branch",
70
  { branchcode => "branchcode" },
96
  { branchcode => "branchcode" },
71
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
97
  {
98
    is_deferrable => 1,
99
    join_type     => "LEFT",
100
    on_delete     => "RESTRICT",
101
    on_update     => "RESTRICT",
102
  },
72
);
103
);
73
104
74
105
75
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26
106
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-27 15:17:58
76
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LrJt6g6ji7tXaCiX4thIxA
107
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nwcRXCDS8yWpKZtKHqK1Ig
77
108
78
109
79
# You can replace this text with custom code or comments, and it will be preserved on regeneration
110
# You can replace this text with custom code or comments, and it will be preserved on regeneration
80
- 

Return to bug 7736