Problem with DB migration: 20120205111326_change_users_login_limit.rb (Update from Redmine 1.2.1 PG)

Added by flurios fl over 7 years ago

Updating from Redmine 1.2.1 with Postgres:

==  ChangeUsersLoginLimit: migrating ==========================================
-- change_column(:users, :login, :string, {:limit=>nil, :null=>false, :default=>""})
rake aborted!
An error has occurred, this and all later migrations canceled:

PG::Error: ERROR:  cannot alter type of a column used by a view or rule
DETAIL:  rule _RETURN on view vw_issues_user depends on column "login" 
: ALTER TABLE "users" ALTER COLUMN "login" TYPE character varying(255)
/var/lib/redmine-2.2.1/db/migrate/20120205111326_change_users_login_limit.rb:3:in `up'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Any help?!