プロジェクト

全般

プロフィール

Vote #66275

完了

Version Status not upgraded from 0.8.5 -> 0.9.0

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
開始日:
2009/12/29
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
6
issue_org_id:
4504
author_id:
691
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I just installed and upgraded my Redmine instance from 0.8.5 to 0.9.0 (stable branch).
The application is working well, but I just noticed there's an issue with Project Versions.

It seems the migration didn't update the status field (screenshot 1).
In fact, if I manually open a version and hit update, then the error disappear because the status field is now properly set (screenshot 2).

Also, the version select is not displayed in any existing project probably because Redmine can't find any active version after the upgrade.


journals

I've fixed the migration in r3259.
This problem did not occur with my Mysql 5 database (status was set to 'open' by default). What is yours ?

Please run the following to set blank statuses to 'open':

<pre>
$ ruby script/console production
Loading production environment (Rails 2.3.5)
>> Version.update_all("status = 'open'", "status IS NULL")
</pre>

--------------------------------------------------------------------------------
Running the update fixed the issue.
The database is PostgreSQL.
--------------------------------------------------------------------------------
This works great, but it's easy to miss if someone had already upgraded to trunk before this commit.
You should really move this to a new migration--and add a "status IS NULL" condition just in case.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリProjects_11 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0