Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f814f271
Commit
f814f271
authored
Mar 11, 2021
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix zero-downtime upgrade from 13.8.x to 13.9.3
parent
3a172309
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb
...1_rename_asset_proxy_allowlist_on_application_settings.rb
+8
-0
db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb
...p_asset_proxy_whitelist_rename_on_application_settings.rb
+4
-6
ee/changelogs/unreleased/324160-geo-zero-downtime-upgrades-step-gitlab-rake-db-migrate-fails-in.yml
...owntime-upgrades-step-gitlab-rake-db-migrate-fails-in.yml
+5
-0
No files found.
db/migrate/20210301200601_rename_asset_proxy_allowlist_on_application_settings.rb
View file @
f814f271
...
@@ -8,6 +8,10 @@ class RenameAssetProxyAllowlistOnApplicationSettings < ActiveRecord::Migration[6
...
@@ -8,6 +8,10 @@ class RenameAssetProxyAllowlistOnApplicationSettings < ActiveRecord::Migration[6
disable_ddl_transaction!
disable_ddl_transaction!
def
up
def
up
cleanup_concurrent_column_rename
:application_settings
,
:asset_proxy_whitelist
,
:asset_proxy_allowlist
rename_column_concurrently
:application_settings
,
rename_column_concurrently
:application_settings
,
:asset_proxy_allowlist
,
:asset_proxy_allowlist
,
:asset_proxy_whitelist
:asset_proxy_whitelist
...
@@ -17,5 +21,9 @@ class RenameAssetProxyAllowlistOnApplicationSettings < ActiveRecord::Migration[6
...
@@ -17,5 +21,9 @@ class RenameAssetProxyAllowlistOnApplicationSettings < ActiveRecord::Migration[6
undo_rename_column_concurrently
:application_settings
,
undo_rename_column_concurrently
:application_settings
,
:asset_proxy_allowlist
,
:asset_proxy_allowlist
,
:asset_proxy_whitelist
:asset_proxy_whitelist
undo_cleanup_concurrent_column_rename
:application_settings
,
:asset_proxy_whitelist
,
:asset_proxy_allowlist
end
end
end
end
db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb
View file @
f814f271
...
@@ -8,14 +8,12 @@ class CleanUpAssetProxyWhitelistRenameOnApplicationSettings < ActiveRecord::Migr
...
@@ -8,14 +8,12 @@ class CleanUpAssetProxyWhitelistRenameOnApplicationSettings < ActiveRecord::Migr
disable_ddl_transaction!
disable_ddl_transaction!
def
up
def
up
cleanup_concurrent_column_rename
:application_settings
,
# This migration has been made a no-op in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56352
:asset_proxy_whitelist
,
# because to revert the rename in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55419 we need
:asset_proxy_allowlist
# to cleanup the triggers on the `asset_proxy_allowlist` column. As such, this migration would do nothing.
end
end
def
down
def
down
undo_cleanup_concurrent_column_rename
:application_settings
,
# no-op
:asset_proxy_whitelist
,
:asset_proxy_allowlist
end
end
end
end
ee/changelogs/unreleased/324160-geo-zero-downtime-upgrades-step-gitlab-rake-db-migrate-fails-in.yml
0 → 100644
View file @
f814f271
---
title
:
Fix zero-downtime upgrade from 13.8.x to 13.9.3
merge_request
:
56352
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment