remove mso_profile, will use profile link
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/898611ba Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/898611ba Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/898611ba Branch: refs/heads/master Commit: 898611babc9b12f042718e11897d2d2e76839249 Parents: 76cf848 Author: Jan van Doorn <jan_vando...@cable.comcast.com> Authored: Mon Dec 26 10:47:38 2016 -0700 Committer: Jan van Doorn <j...@apache.org> Committed: Fri Feb 17 17:49:10 2017 +0000 ---------------------------------------------------------------------- .../app/lib/Schema/Result/Deliveryservice.pm | 32 ++------------------ traffic_ops/app/lib/Schema/Result/Profile.pm | 19 ++---------- 2 files changed, 4 insertions(+), 47 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/898611ba/traffic_ops/app/lib/Schema/Result/Deliveryservice.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/Schema/Result/Deliveryservice.pm b/traffic_ops/app/lib/Schema/Result/Deliveryservice.pm index 93bc2a3..27d48a0 100644 --- a/traffic_ops/app/lib/Schema/Result/Deliveryservice.pm +++ b/traffic_ops/app/lib/Schema/Result/Deliveryservice.pm @@ -288,12 +288,6 @@ __PACKAGE__->table("deliveryservice"); data_type: 'text' is_nullable: 1 -=head2 mso_profile - - data_type: 'bigint' - is_foreign_key: 1 - is_nullable: 1 - =cut __PACKAGE__->add_columns( @@ -405,8 +399,6 @@ __PACKAGE__->add_columns( { data_type => "smallint", is_nullable => 1 }, "geolimit_redirect_url", { data_type => "text", is_nullable => 1 }, - "mso_profile", - { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -541,26 +533,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 mso_profile - -Type: belongs_to - -Related object: L<Schema::Result::Profile> - -=cut - -__PACKAGE__->belongs_to( - "mso_profile", - "Schema::Result::Profile", - { id => "mso_profile" }, - { - is_deferrable => 0, - join_type => "LEFT", - on_delete => "NO ACTION", - on_update => "NO ACTION", - }, -); - =head2 profile Type: belongs_to @@ -637,8 +609,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2016-12-23 15:30:11 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aULX21NuOuu6Ow8dfmQ9Ig +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2016-12-26 10:44:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+HFlbMehDLwkF/hmfifkjw # You can replace this text with custom code or comments, and it will be preserved on regeneration # http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/898611ba/traffic_ops/app/lib/Schema/Result/Profile.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/Schema/Result/Profile.pm b/traffic_ops/app/lib/Schema/Result/Profile.pm index 05deb14..4ece9ed 100644 --- a/traffic_ops/app/lib/Schema/Result/Profile.pm +++ b/traffic_ops/app/lib/Schema/Result/Profile.pm @@ -98,21 +98,6 @@ __PACKAGE__->add_unique_constraint("idx_18384_name_unique", ["name"]); =head1 RELATIONS -=head2 deliveryservice_mso_profiles - -Type: has_many - -Related object: L<Schema::Result::Deliveryservice> - -=cut - -__PACKAGE__->has_many( - "deliveryservice_mso_profiles", - "Schema::Result::Deliveryservice", - { "foreign.mso_profile" => "self.id" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 deliveryservices Type: has_many @@ -159,8 +144,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2016-12-23 15:30:11 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w9Yffpzp/V9wfVSGxX8kaw +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2016-12-26 10:44:56 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lLgKBTaWgSw4T1NXk7jh/g # You can replace this text with custom code or comments, and it will be preserved on regeneration