]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugPackage.pm
b3d40b88a7021eb66f96959a40ed2970c529e2ca
[debbugs.git] / Debbugs / DB / Result / BugPackage.pm
1 use utf8;
2 package Debbugs::DB::Result::BugPackage;
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::BugPackage
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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31 __PACKAGE__->table_class("DBIx::Class::ResultSource::View");
32
33 =head1 TABLE: C<bug_package>
34
35 =cut
36
37 __PACKAGE__->table("bug_package");
38
39 =head1 ACCESSORS
40
41 =head2 bug
42
43   data_type: 'integer'
44   is_nullable: 1
45
46 =head2 pkg_id
47
48   data_type: 'integer'
49   is_nullable: 1
50
51 =head2 pkg_type
52
53   data_type: 'text'
54   is_nullable: 1
55
56 =head2 package
57
58   data_type: 'text'
59   is_nullable: 1
60
61 =cut
62
63 __PACKAGE__->add_columns(
64   "bug",
65   { data_type => "integer", is_nullable => 1 },
66   "pkg_id",
67   { data_type => "integer", is_nullable => 1 },
68   "pkg_type",
69   { data_type => "text", is_nullable => 1 },
70   "package",
71   { data_type => "text", is_nullable => 1 },
72 );
73
74
75 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
76 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ok2J+mjxvBcgdiqigiCBQA
77
78 __PACKAGE__->result_source_instance->view_definition(<<EOF);
79 SELECT b.bug,b.bin_pkg,'binary',bp.pkg FROM bug_binpackage b JOIN bin_pkg bp ON bp.id=b.bin_pkg UNION
80        SELECT s.bug,s.src_pkg,'source',sp.pkg FROM bug_srcpackage s JOIN src_pkg sp ON sp.id=s.src_pkg;
81 EOF
82
83
84 # You can replace this text with custom code or comments, and it will be preserved on regeneration
85 1;