=head1 ACCESSORS
+=head2 id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+ sequence: 'bug_ver_id_seq'
+
+Bug version id
+
=head2 bug
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
+ "id",
+ {
+ data_type => "integer",
+ is_auto_increment => 1,
+ is_nullable => 0,
+ sequence => "bug_ver_id_seq",
+ },
"bug",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
"ver_string",
},
);
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
=head1 UNIQUE CONSTRAINTS
=head2 C<bug_ver_bug_ver_string_found_idx>
);
-# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 21:57:41
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yfu0BNTuEb3naSH/RR0YZA
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yTXx9otJq7Ur+tbswRs8mQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 UNIQUE CONSTRAINTS
-=head2 C<correspondent_addr_key>
+=head2 C<correspondent_addr_idx>
=over 4
=cut
-__PACKAGE__->add_unique_constraint("correspondent_addr_key", ["addr"]);
+__PACKAGE__->add_unique_constraint("correspondent_addr_idx", ["addr"]);
=head1 RELATIONS
);
-# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wyisfi/87NgArvWis4/tuw
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iw5Rey49aurBMhqdnlKaiw
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 UNIQUE CONSTRAINTS
-=head2 C<maintainer_name_key>
+=head2 C<maintainer_name_idx>
=over 4
=cut
-__PACKAGE__->add_unique_constraint("maintainer_name_key", ["name"]);
+__PACKAGE__->add_unique_constraint("maintainer_name_idx", ["name"]);
=head1 RELATIONS
);
-# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 21:57:41
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E1iNr1IKDcHDQYtmVdsoHA
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5E4fT7G2x7wdPfr7SMqgGg
# You can replace this text with custom code or comments, and it will be preserved on regeneration
=head1 UNIQUE CONSTRAINTS
-=head2 C<severity_severity_key>
+=head2 C<severity_severity_idx>
=over 4
=cut
-__PACKAGE__->add_unique_constraint("severity_severity_key", ["severity"]);
+__PACKAGE__->add_unique_constraint("severity_severity_idx", ["severity"]);
=head1 RELATIONS
);
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 19:35:10
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVJ20W+hu/tjDthRG38xtA
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-23 17:31:18
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xZN34NjFy5iDRay5w6JYVQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration
CREATE TABLE bug_ver (
+ id SERIAL PRIMARY KEY,
bug INT NOT NULL REFERENCES bug
ON UPDATE CASCADE ON DELETE RESTRICT,
ver_string TEXT,
CREATE INDEX bug_ver_src_ver_id_idx ON bug_ver(src_ver);
CREATE UNIQUE INDEX ON bug_ver(bug,ver_string,found);
INSERT INTO table_comments VALUES ('bug_ver','Bug versions');
+INSERT INTO column_comments VALUES ('bug_ver','id','Bug version id');
INSERT INTO column_comments VALUES ('bug_ver','bug','Bug number');
INSERT INTO column_comments VALUES ('bug_ver','ver_string','Version string');
INSERT INTO column_comments VALUES ('bug_ver','src_pkg','Source package id (matches src_pkg table)');
INSERT INTO column_comments VALUES ('message','refs','Contents of References: header');
INSERT INTO column_comments VALUES ('message','spam_score','Spam score from spamassassin');
INSERT INTO column_comments VALUES ('message','is_spam','True if this message was spam and should not be shown');
-
CREATE INDEX ON message(msgid);
CREATE TABLE message_refs (
bug_log_offset INT,
offset_valid TIMESTAMP WITH TIME ZONE
);
+CREATE UNIQUE INDEX bug_message(bug,message);
+CREATE INDEX bug_message(bug,message_number);
INSERT INTO table_comments VALUES ('bug_mesage','Mapping between a bug and a message');
INSERT INTO column_comments VALUES ('bug_message','bug','Bug id (matches bug)');
INSERT INTO column_comments VALUES ('bug_message','message','Message id (matches message)');