Project

General

Profile

Actions

Bug #4523

closed

DB migration fails while upgrading theforeman from 1.3 to 1.4

Added by Dotan Paz over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DB migrations
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 .


Related issues 1 (1 open0 closed)

Is duplicate of Foreman - Bug #4518: DB migrations: Can't DROP 'role_id'; check that column/key existsNew03/03/2014Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Is duplicate of Bug #4518: DB migrations: Can't DROP 'role_id'; check that column/key exists added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF