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
2ee73afa
Commit
2ee73afa
authored
Feb 11, 2020
by
Andy Soiron
Committed by
Mayra Cabrera
Feb 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove column instance on services table
parent
54a12b7e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
changelogs/unreleased/revert_rename_services_template_to_instance_migration.yml
...revert_rename_services_template_to_instance_migration.yml
+5
-0
db/post_migrate/20200211152410_remove_instance_from_services.rb
...t_migrate/20200211152410_remove_instance_from_services.rb
+19
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
changelogs/unreleased/revert_rename_services_template_to_instance_migration.yml
0 → 100644
View file @
2ee73afa
---
title
:
Revert rename services template to instance migration
merge_request
:
24885
author
:
type
:
fixed
db/post_migrate/20200211152410_remove_instance_from_services.rb
0 → 100644
View file @
2ee73afa
# frozen_string_literal: true
class
RemoveInstanceFromServices
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
return
unless
column_exists?
(
:services
,
:instance
)
undo_rename_column_concurrently
:services
,
:template
,
:instance
end
def
down
# This migration should not be rolled back because it
# removes a column that got added in migrations that
# have been reverted in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24857
end
end
db/schema.rb
View file @
2ee73afa
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_02_
07_15164
0
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_02_
11_15241
0
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
enable_extension
"pg_trgm"
...
...
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