Commit 9843f9ee authored by Robert Speicher's avatar Robert Speicher

Merge branch 'handle-appearance-upgrade-ce-to-ee' into 'master'

Handle duplicate appearances table creation issue with upgrade from CE to EE

Closes #391

See merge request !278
parents 6ffd4427 da66f0fe
Please view this file on the master branch, on stable branches it's out of date. Please view this file on the master branch, on stable branches it's out of date.
v 8.6.0 (unreleased) v 8.6.0 (unreleased)
- Handle duplicate appearances table creation issue with upgrade from CE to EE
- Improve weight filter for issues - Improve weight filter for issues
- Clear "stuck" mirror updates before periodically updating all mirrors. - Clear "stuck" mirror updates before periodically updating all mirrors.
- [Elastic] Add elastic checker to gitlab:check - [Elastic] Add elastic checker to gitlab:check
......
class CreateAppearances < ActiveRecord::Migration class CreateAppearances < ActiveRecord::Migration
def change def change
# GitLab CE may already have created this table, so to preserve
# the upgrade path from CE -> EE we only create this if necessary.
unless table_exists?(:appearances)
create_table :appearances do |t| create_table :appearances do |t|
t.string :title t.string :title
t.text :description t.text :description
...@@ -9,4 +12,5 @@ class CreateAppearances < ActiveRecord::Migration ...@@ -9,4 +12,5 @@ class CreateAppearances < ActiveRecord::Migration
t.timestamps t.timestamps
end end
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment