Project

General

Profile

Bug #17361

`rake db:drop db:create db:migrate` doesn't migrate plugins

Added by Ivan Necas over 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugins-Engines
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The core issue is in rails, where the migrations_paths get initialized before the rails environment,
when calling db:create, and it's not getting update later

https://github.com/rails/rails/blob/v5.0.0.1/activerecord/lib/active_record/railties/databases.rake#L16

Steps to reproduce

1. install a plugin
2. rake db:drop db:create db:migrate
3. notice the plugin migrations are not being run


Related issues

Blocks Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosed2016-07-22

Associated revisions

Revision afd5e512 (diff)
Added by Ivan Necas over 2 years ago

Fixes #17361 - ensure plugins migration paths are set

History

#1 Updated by Ivan Necas over 2 years ago

  • Blocks Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/215 added

#3 Updated by Ivan Necas over 2 years ago

  • Project changed from foreman-tasks to Foreman
  • Subject changed from `rake db:drop db:create db:migrate` doesn't migrate tasks tables to `rake db:drop db:create db:migrate` doesn't migrate plugins
  • Description updated (diff)
  • Category set to Plugins-Engines
  • Status changed from Ready For Testing to Assigned
  • Pull request deleted (https://github.com/theforeman/foreman-tasks/pull/215)

#4 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4027 added

#5 Updated by Marek Hulán over 2 years ago

  • Legacy Backlogs Release (now unused) set to 189

#6 Updated by Ivan Necas over 2 years ago

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

Also available in: Atom PDF