diff --git a/lib/AmuseWikiFarm/Schema/Result/Aggregation.pm b/lib/AmuseWikiFarm/Schema/Result/Aggregation.pm index 4c7aae78..e20ddb65 100644 --- a/lib/AmuseWikiFarm/Schema/Result/Aggregation.pm +++ b/lib/AmuseWikiFarm/Schema/Result/Aggregation.pm @@ -44,7 +44,7 @@ __PACKAGE__->table("aggregation"); is_auto_increment: 1 is_nullable: 0 -=head2 uri +=head2 aggregation_uri data_type: 'varchar' is_nullable: 0 @@ -104,7 +104,7 @@ __PACKAGE__->table("aggregation"); __PACKAGE__->add_columns( "aggregation_id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, - "uri", + "aggregation_uri", { data_type => "varchar", is_nullable => 0, size => 255 }, "name", { data_type => "varchar", is_nullable => 0, size => 255 }, @@ -138,11 +138,11 @@ __PACKAGE__->set_primary_key("aggregation_id"); =head1 UNIQUE CONSTRAINTS -=head2 C +=head2 C =over 4 -=item * L +=item * L =item * L @@ -150,7 +150,10 @@ __PACKAGE__->set_primary_key("aggregation_id"); =cut -__PACKAGE__->add_unique_constraint("uri_site_id_unique", ["uri", "site_id"]); +__PACKAGE__->add_unique_constraint( + "aggregation_uri_site_id_unique", + ["aggregation_uri", "site_id"], +); =head1 RELATIONS @@ -185,8 +188,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-01-13 08:44:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nUMeC3DbhhAKPAqwM3ohpw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-01-13 08:51:59 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OvK/gLRxFR/f+YzIcud0BQ # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/sql/sqlite.sql b/sql/sqlite.sql index d98bd45e..87afdcf4 100644 --- a/sql/sqlite.sql +++ b/sql/sqlite.sql @@ -756,7 +756,7 @@ CREATE UNIQUE INDEX unique_title_annotation_key ON title_annotation (annotation_ CREATE TABLE aggregation ( aggregation_id INTEGER PRIMARY KEY AUTOINCREMENT, - uri VARCHAR(255) NOT NULL, -- fe-15 + aggregation_uri VARCHAR(255) NOT NULL, -- fe-15 name VARCHAR(255) NOT NULL, -- F.E. -- inside the same name series_number VARCHAR(255), -- 15 @@ -778,7 +778,7 @@ CREATE TABLE aggregation ( ); CREATE INDEX aggregation_name_idx ON aggregation(name); -CREATE UNIQUE INDEX unique_aggregation ON aggregation (uri, site_id); +CREATE UNIQUE INDEX unique_aggregation ON aggregation (aggregation_uri, site_id); CREATE TABLE aggregation_title ( aggregation_id INTEGER NOT NULL REFERENCES aggregation(aggregation_id) ON DELETE CASCADE ON UPDATE CASCADE,