Bug #17361

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

Added by Ivan Necas 10 months ago. Updated 10 months ago.

Status:Closed
Priority:Normal
Assigned To:Ivan Necas
Category:Plugins-Engines
Target version:Team Ivan Iteration 6
Difficulty:easy Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4027
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

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 as... Closed 07/22/2016

Associated revisions

Revision afd5e512
Added by Ivan Necas 10 months ago

Fixes #17361 - ensure plugins migration paths are set

History

#1 Updated by Ivan Necas 10 months ago

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

#2 Updated by The Foreman Bot 10 months 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 10 months 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 10 months 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 10 months ago

  • Release set to 1.14.0

#6 Updated by Ivan Necas 10 months ago

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

Also available in: Atom PDF