プロジェクト

全般

プロフィール

Vote #72145

完了

redmine:plugins:migrate should update db/schema.rb

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
Database_21
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
21
version_id:
54
issue_org_id:
11299
author_id:
1188
assigned_to_id:
1188
comments:
5
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I don't know if it's actually a defect or if it's intentional, but @redmine:plugins:migrate@ task doesn't invoke @db:schema:dump@, hence it does not update the @db/schema.rb@ file. It causes at least unintuitive behaviour when cloning the database structure or when testing plugins for instance, as the @test@ task invokes active_record's @db:schema:load@ and it might not be up to date.

Any opinion about this ? Can someone think about this as intentional and why ? If not I can commit this later.


journals

Even I just noticed it, This should be fixed ASAP.
@Jean Any idea how to make a clone of development database into your test database with all migrations already running and schema dump being inaccurate?
--------------------------------------------------------------------------------
You can manually trigger a db:schema:dump: <pre>
RAILS_ENV=development rake db:schema:dump
RAILS_ENV=test rake db:reset db:schema:load
</pre>
--------------------------------------------------------------------------------
Added in r10134 (sorry I forgot the id of the ticket :/).

Jean-Philippe, Toshi, or Etienne: I let you merge that in a stable branch when you think it's appropriate.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Merged in 2.0-stable.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリDatabase_21 にセット
  • 対象バージョン2.0.4_54 にセット

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

いいね!0
いいね!0