Project

General

Profile

Bug #3202

Orphaned records migration should use delete_all for speed

Added by Dominic Cleal about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

The orphaned records migration added in #2400 used destroy instead of delete, but we can switch for more speed.

https://github.com/theforeman/foreman/pull/877


Related issues

Related to Foreman - Feature #2400: Add foreign keys on database levelClosed2013-04-15

Associated revisions

Revision c520fc00 (diff)
Added by Joseph Magen about 9 years ago

fixes #3202 - PG constraints deferred and change destroy_all to delete_all

Revision 601a3e9d (diff)
Added by Joseph Magen about 9 years ago

fixes #3202 - PG constraints deferred and change destroy_all to delete_all

(cherry picked from commit c520fc00e8038603f07df5b535a19488e40e5c71)

History

#1 Updated by Dominic Cleal about 9 years ago

  • Related to Feature #2400: Add foreign keys on database level added

#2 Updated by Dominic Cleal about 9 years ago

  • Related to Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final added

#3 Updated by Joseph Magen about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Lukas Zapletal about 9 years ago

  • Related to deleted (Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final)

Also available in: Atom PDF