Actions
Bug #4523
closedDB migration fails while upgrading theforeman from 1.3 to 1.4
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DB migrations
Target version:
-
Description
Hello ,
When upgrading theforeman from 1.3 to 1.4 and running the db migration command "foreman-rake db:migrate" , the script fails with the following error :
RemoveUnusedRoleFields: migrating =======================================
-- remove_column(:users, :role_id)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql::Error: Can't DROP 'role_id'; check that column/key exists: ALTER TABLE `users` DROP `role_id`
Tasks: TOP => db:migrate
(See full trace by running task with --trace) .
As a workaround I needed to comment out a few lines in /usr/share/foreman/db/migrate/20130924145800_remove_unused_role_fields.rb .
Actions