Project

General

Profile

Bug #26028

Removing recurring logic fails with `katello_sync_plans.recurring_logic_id does not exist`

Added by Ivan Necas over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

# in rails console
> rl = ForemanTasks::RecurringLogic.last
> rl.destroy

ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR:  column katello_sync_plans.recurring_logic_id does not exist)
LINE 1: ...llo_sync_plans".* FROM "katello_sync_plans" WHERE "katello_s...
                                                             ^
: SELECT  "katello_sync_plans".* FROM "katello_sync_plans" WHERE "katello_sync_plans"."recurring_logic_id" = $1 LIMIT $2

Associated revisions

Revision 0f752247 (diff)
Added by Ivan Necas over 3 years ago

Fixes #26028 - set foreign key for tasks sync plan explicitly

Otherwise, destroying fails with `katello_sync_plans.recurring_logic_id
does not exist`

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7972 added

#2 Updated by Ivan Necas over 3 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Christine Fouant over 3 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0

Also available in: Atom PDF