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
5fdca550
Commit
5fdca550
authored
May 31, 2021
by
Mario Celi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop remove_on_close column from labels table in envs where it exists
Changelog: other
parent
f81cc1f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
db/post_migrate/20210621164210_drop_remove_on_close_from_labels.rb
...igrate/20210621164210_drop_remove_on_close_from_labels.rb
+19
-0
db/schema_migrations/20210621164210
db/schema_migrations/20210621164210
+1
-0
No files found.
db/post_migrate/20210621164210_drop_remove_on_close_from_labels.rb
0 → 100644
View file @
5fdca550
# frozen_string_literal: true
class
DropRemoveOnCloseFromLabels
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
def
up
# Migration that adds column was reverted, but run in Gitlab SaaS stg and prod
return
unless
column_exists?
(
:labels
,
:remove_on_close
)
with_lock_retries
do
remove_column
:labels
,
:remove_on_close
end
end
def
down
# No rollback as the original migration was reverted in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62056
# up simply removes the column from envs where the original migration was run
end
end
db/schema_migrations/20210621164210
0 → 100644
View file @
5fdca550
b952f1e3fe2bfa680ba68b79637e0a2a1ee5b388cfa106db62521a663262b024
\ No newline at end of file
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