]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugMerged.pm
update for correspondent in maintainer
[debbugs.git] / Debbugs / DB / Result / BugMerged.pm
1 use utf8;
2 package Debbugs::DB::Result::BugMerged;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::BugMerged - Bugs which are merged with other bugs
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<bug_merged>
31
32 =cut
33
34 __PACKAGE__->table("bug_merged");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'bug_merged_id_seq'
44
45 =head2 bug
46
47   data_type: 'integer'
48   is_foreign_key: 1
49   is_nullable: 0
50
51 Bug number
52
53 =head2 merged
54
55   data_type: 'integer'
56   is_foreign_key: 1
57   is_nullable: 0
58
59 Bug number which is merged with bug
60
61 =cut
62
63 __PACKAGE__->add_columns(
64   "id",
65   {
66     data_type         => "integer",
67     is_auto_increment => 1,
68     is_nullable       => 0,
69     sequence          => "bug_merged_id_seq",
70   },
71   "bug",
72   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73   "merged",
74   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 );
76
77 =head1 PRIMARY KEY
78
79 =over 4
80
81 =item * L</id>
82
83 =back
84
85 =cut
86
87 __PACKAGE__->set_primary_key("id");
88
89 =head1 UNIQUE CONSTRAINTS
90
91 =head2 C<bug_merged_bug_id_merged_idx>
92
93 =over 4
94
95 =item * L</bug>
96
97 =item * L</merged>
98
99 =back
100
101 =cut
102
103 __PACKAGE__->add_unique_constraint("bug_merged_bug_id_merged_idx", ["bug", "merged"]);
104
105 =head1 RELATIONS
106
107 =head2 bug
108
109 Type: belongs_to
110
111 Related object: L<Debbugs::DB::Result::Bug>
112
113 =cut
114
115 __PACKAGE__->belongs_to(
116   "bug",
117   "Debbugs::DB::Result::Bug",
118   { id => "bug" },
119   { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
120 );
121
122 =head2 merged
123
124 Type: belongs_to
125
126 Related object: L<Debbugs::DB::Result::Bug>
127
128 =cut
129
130 __PACKAGE__->belongs_to(
131   "merged",
132   "Debbugs::DB::Result::Bug",
133   { id => "merged" },
134   { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
135 );
136
137
138 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GILRzg9MHEZ4k8h6aJxISA
140
141
142 # You can replace this text with custom code or comments, and it will be preserved on regeneration
143 1;