# This version must be incremented any time the schema changes so that
# DBIx::Class::DeploymentHandler can do its work
-our $VERSION=4;
+our $VERSION=5;
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=cut
__PACKAGE__->table("binary_versions");
+__PACKAGE__->result_source_instance->view_definition(" SELECT sp.pkg AS src_pkg,\n sv.ver AS src_ver,\n bp.pkg AS bin_pkg,\n a.arch,\n b.ver AS bin_ver,\n svb.ver AS src_ver_based_on,\n spb.pkg AS src_pkg_based_on\n FROM ((((((bin_ver b\n JOIN arch a ON ((b.arch = a.id)))\n JOIN bin_pkg bp ON ((b.bin_pkg = bp.id)))\n JOIN src_ver sv ON ((b.src_ver = sv.id)))\n JOIN src_pkg sp ON ((sv.src_pkg = sp.id)))\n LEFT JOIN src_ver svb ON ((sv.based_on = svb.id)))\n LEFT JOIN src_pkg spb ON ((spb.id = svb.src_pkg)))");
=head1 ACCESSORS
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fH11OTb1r9SS1Ps9tM6WPQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0MeJnGxBc8gdEoPE6Sn6Sw
__PACKAGE__->result_source_instance->view_definition(<<EOF);
SELECT sp.pkg AS src_pkg, sv.ver AS src_ver, bp.pkg AS bin_pkg, a.arch AS arch, b.ver AS bin_ver,
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iaipVETTaokcFNrICfIEAw
+__PACKAGE__->many_to_many(tags => 'bug_tags','tag');
+__PACKAGE__->many_to_many(user_tags => 'bug_user_tags','user_tag');
+__PACKAGE__->many_to_many(srcpackages => 'bug_srcpackages','src_pkg');
+__PACKAGE__->many_to_many(binpackages => 'bug_binpackages','bin_pkg');
+__PACKAGE__->many_to_many(affects_binpackages => 'bug_affects_binpackages','bin_pkg');
+__PACKAGE__->many_to_many(affects_srcpackages => 'bug_affects_srcpackages','src_pkg');
+__PACKAGE__->many_to_many(messages => 'bug_messages','message');
+
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_affects_binpackage_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_affects_binpackage_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"bin_pkg",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_affects_binpackage_id_pkg>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YMVeFNjGPxjuvU6ufDtRVg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qPJSly5VwC8Fl9hchBtB1Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_affects_srcpackage_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_affects_srcpackage_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"src_pkg",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_affects_srcpackage_id_pkg>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BjS8+RV2k7wjqyLqmCZ+2w
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1TkTacVNBhXOnzV1ttCF2A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_binpackage_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_binpackage_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"bin_pkg",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_binpackage_id_pkg>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FZAi6kX8ICe/ZJI0JEqZLg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wL+pwSCfWe/mMQOjziKSeg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_message_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_message_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"message",
{ data_type => "timestamp with time zone", is_nullable => 1 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_message_bug_message_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gof8IcnKupbpDmbU39kx6A
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRbN9C6P/wvWWmSmjNGjLA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=cut
__PACKAGE__->table("bug_package");
+__PACKAGE__->result_source_instance->view_definition(" SELECT b.bug,\n b.bin_pkg AS pkg_id,\n 'binary'::text AS pkg_type,\n bp.pkg AS package\n FROM (bug_binpackage b\n JOIN bin_pkg bp ON ((bp.id = b.bin_pkg)))\nUNION\n SELECT s.bug,\n s.src_pkg AS pkg_id,\n 'source'::text AS pkg_type,\n sp.pkg AS package\n FROM (bug_srcpackage s\n JOIN src_pkg sp ON ((sp.id = s.src_pkg)))");
=head1 ACCESSORS
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ok2J+mjxvBcgdiqigiCBQA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+zeVIVZOYSZjTkD+1N2sdw
__PACKAGE__->result_source_instance->view_definition(<<EOF);
SELECT b.bug,b.bin_pkg,'binary',bp.pkg FROM bug_binpackage b JOIN bin_pkg bp ON bp.id=b.bin_pkg UNION
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_srcpackage_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_srcpackage_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"src_pkg",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_srcpackage_id_pkg>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rkrGE3oLGWe28oXEFt4UFg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SduyMaGHABDrX19Cxg4fg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_status_cache_id_seq'
-
-Bug status cache entry id
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_status_cache_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"suite",
},
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_status_cache_bug_suite_arch_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jrPFpLs6vLgKWMSLyJAkxA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dgaCogdpUWo99BQhdH68Mg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_tag_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_tag_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"tag",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_tag_bug_tag>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g7sgOcROAtOdRa9vrI5gQg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyHP5f8zAxn/AdjOCr8WAg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'bug_user_tag_id_seq'
-
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "bug_user_tag_id_seq",
- },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"user_tag",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_user_tag_bug_tag>
);
-# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bczKcbFkWt98BDvXLdhpcg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jZngUCQ1eBBcfXd/jWCKGA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'correspondent_full_name_id_seq'
-
-Correspondent full name id
-
=head2 correspondent
data_type: 'integer'
is_foreign_key: 1
is_nullable: 0
+Correspondent ID (matches correspondent)
+
=head2 full_name
data_type: 'text'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "correspondent_full_name_id_seq",
- },
"correspondent",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"full_name",
},
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<correspondent_full_name_correspondent_full_name_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rXiBbe/rMz4dOMgW5ZovWw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2Ac8mrDV2IsE/11YsYoqQQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
Complete from header of message
-=head2 from_addr
-
- data_type: 'text'
- default_value: (empty string)
- is_nullable: 0
-
-Address(es) of From: headers
-
=head2 to_complete
data_type: 'text'
Complete to header of message
-=head2 to_addr
-
- data_type: 'text'
- default_value: (empty string)
- is_nullable: 0
-
-Address(es) of To: header
-
=head2 subject
data_type: 'text'
{ data_type => "text", default_value => "", is_nullable => 0 },
"from_complete",
{ data_type => "text", default_value => "", is_nullable => 0 },
- "from_addr",
- { data_type => "text", default_value => "", is_nullable => 0 },
"to_complete",
{ data_type => "text", default_value => "", is_nullable => 0 },
- "to_addr",
- { data_type => "text", default_value => "", is_nullable => 0 },
"subject",
{ data_type => "text", default_value => "", is_nullable => 0 },
"sent_date",
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dow6t1MS7ldAy6KBMtBWRQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-07 19:03:32
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n8U0vD9R8M5wFoeoLlIWeQ
+__PACKAGE__->many_to_many(bugs => 'bug_messages','bug');
+__PACKAGE__->many_to_many(correspondents => 'message_correspondents','correspondent');
+__PACKAGE__->many_to_many(references => 'message_refs_message','message');
+__PACKAGE__->many_to_many(referenced_by => 'message_refs_refs','message');
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'message_correspondent_id_seq'
-
=head2 message
data_type: 'integer'
data_type: 'enum'
default_value: 'to'
- extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc"]}
+ extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc","recv"]}
is_nullable: 0
Type of correspondent (to, from, envfrom, cc, etc.)
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "message_correspondent_id_seq",
- },
"message",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"correspondent",
default_value => "to",
extra => {
custom_type_name => "message_correspondent_type",
- list => ["to", "from", "envfrom", "cc"],
+ list => ["to", "from", "envfrom", "cc", "recv"],
},
is_nullable => 0,
},
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<message_correspondent_message_correspondent_correspondent_t_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiQOa7XliOu8PNC8DxQPnQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-07 19:03:32
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kIhya7skj4ZNM3DkC+gAPw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 ACCESSORS
-=head2 id
-
- data_type: 'integer'
- is_auto_increment: 1
- is_nullable: 0
- sequence: 'message_refs_id_seq'
-
=head2 message
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
- "id",
- {
- data_type => "integer",
- is_auto_increment => 1,
- is_nullable => 0,
- sequence => "message_refs_id_seq",
- },
"message",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"refs",
{ data_type => "boolean", default_value => \"false", is_nullable => 1 },
);
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
=head1 UNIQUE CONSTRAINTS
=head2 C<message_refs_message_refs_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AYCyNKkqOAjoWVelU0HKrA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0YaAP/sB5N2Xr2rAFNK1lg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
data_type: 'boolean'
default_value: false
- is_nullable: 1
+ is_nullable: 0
=head2 alias_of
data_type: 'timestamp with time zone'
default_value: current_timestamp
- is_nullable: 1
+ is_nullable: 0
original: {default_value => \"now()"}
=head2 disabled
data_type: 'timestamp with time zone'
- is_nullable: 1
+ default_value: infinity
+ is_nullable: 0
=head2 last_modified
data_type: 'timestamp with time zone'
default_value: current_timestamp
- is_nullable: 1
+ is_nullable: 0
original: {default_value => \"now()"}
=head2 obsolete
data_type: 'boolean'
default_value: false
- is_nullable: 1
+ is_nullable: 0
=cut
"pkg",
{ data_type => "text", is_nullable => 0 },
"pseduopkg",
- { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+ { data_type => "boolean", default_value => \"false", is_nullable => 0 },
"alias_of",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"creation",
{
data_type => "timestamp with time zone",
default_value => \"current_timestamp",
- is_nullable => 1,
+ is_nullable => 0,
original => { default_value => \"now()" },
},
"disabled",
- { data_type => "timestamp with time zone", is_nullable => 1 },
+ {
+ data_type => "timestamp with time zone",
+ default_value => "infinity",
+ is_nullable => 0,
+ },
"last_modified",
{
data_type => "timestamp with time zone",
default_value => \"current_timestamp",
- is_nullable => 1,
+ is_nullable => 0,
original => { default_value => \"now()" },
},
"obsolete",
- { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+ { data_type => "boolean", default_value => \"false", is_nullable => 0 },
);
=head1 PRIMARY KEY
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qJt8Dn/9gBxJKauPUCFS7w
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j8LGu4eUfNUNxM/jkHUG2A
# You can replace this text with custom code or comments, and it will be preserved on regeneration