]> git.donarmstrong.com Git - debbugs.git/commitdiff
update schema to 4 with more constraints
authorDon Armstrong <don@donarmstrong.com>
Mon, 9 Jan 2017 23:11:52 +0000 (15:11 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 9 Jan 2017 23:11:52 +0000 (15:11 -0800)
Debbugs/DB.pm
Debbugs/DB/Result/BinAssociation.pm
Debbugs/DB/Result/BinVer.pm
Debbugs/DB/Result/SrcAssociation.pm
Debbugs/DB/Result/Suite.pm

index c3937444e03a8862781a0aba15ecfc311fe938e5..ed6c46ada0e42febb95113732e534050593eca5f 100644 (file)
@@ -17,7 +17,7 @@ __PACKAGE__->load_namespaces;
 
 # This version must be incremented any time the schema changes so that
 # DBIx::Class::DeploymentHandler can do its work
-our $VERSION=3;
+our $VERSION=4;
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
 
index 02d923ef14041eb41455f85400e356b6b5521120..7ae23fa8d6ca7afb5809272c62729fd2f9a1d604 100644 (file)
@@ -122,6 +122,22 @@ __PACKAGE__->add_columns(
 
 __PACKAGE__->set_primary_key("id");
 
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<bin_associations_bin_suite>
+
+=over 4
+
+=item * L</bin>
+
+=item * L</suite>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("bin_associations_bin_suite", ["bin", "suite"]);
+
 =head1 RELATIONS
 
 =head2 bin
@@ -155,8 +171,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T7Jms1yHoqpzOdL4mnmBOA
+# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 09:00:00
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3F77iWjlJrHs/98TOfroAA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 7a71c0910e9a5e8d99ae938652874b70cf76d5f3..df90ebfbe24305a8096ebffe8c212ea0c31b8bee 100644 (file)
@@ -127,20 +127,6 @@ __PACKAGE__->set_primary_key("id");
 
 __PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg", "arch", "ver"]);
 
-=head2 C<bin_ver_src_ver_id_arch_idx>
-
-=over 4
-
-=item * L</src_ver>
-
-=item * L</arch>
-
-=back
-
-=cut
-
-__PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver", "arch"]);
-
 =head1 RELATIONS
 
 =head2 arch
@@ -204,8 +190,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Jie49PiJahtnqmfkKQYtcw
+# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 09:08:27
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DzTzZbPkilT8WMhXoZv9xw
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index f35eb1661dfdc90af5716e82f9a1769455e49745..01ac4bd34538ed1cbf5fbf835f780606b772f705 100644 (file)
@@ -122,6 +122,22 @@ __PACKAGE__->add_columns(
 
 __PACKAGE__->set_primary_key("id");
 
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<src_associations_source_suite>
+
+=over 4
+
+=item * L</source>
+
+=item * L</suite>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("src_associations_source_suite", ["source", "suite"]);
+
 =head1 RELATIONS
 
 =head2 source
@@ -155,8 +171,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OArdotyolRaEbHj7Yxio2Q
+# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 08:52:49
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B3gOeYD0JxOUtV92mBocZQ
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index cf1d04a8510fe8c3d81ae1c9ae37634f46363f59..37c875c403b55843d1e14b31203c516b6a4e7738 100644 (file)
@@ -121,6 +121,18 @@ __PACKAGE__->set_primary_key("id");
 
 __PACKAGE__->add_unique_constraint("suite_idx_codename", ["codename"]);
 
+=head2 C<suite_idx_version>
+
+=over 4
+
+=item * L</version>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("suite_idx_version", ["version"]);
+
 =head2 C<suite_suite_name_key>
 
 =over 4
@@ -181,8 +193,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-23 18:13:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:32GH2trGMuarLv+EjO1l8w
+# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 08:52:49
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nXoQCYZhM9cFgC1x+RY9rA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration