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
a41b1367
Commit
a41b1367
authored
Apr 04, 2019
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove column as needed
parent
c42847bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
db/schema.rb
db/schema.rb
+1
-2
ee/db/post_migrate/20190404231137_remove_alternate_url_from_geo_nodes.rb
...ate/20190404231137_remove_alternate_url_from_geo_nodes.rb
+21
-0
No files found.
db/schema.rb
View file @
a41b1367
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2019040
3161806
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019040
4231137
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1361,7 +1361,6 @@ ActiveRecord::Schema.define(version: 20190403161806) do
t
.
text
"selective_sync_shards"
t
.
integer
"verification_max_capacity"
,
default:
100
,
null:
false
t
.
integer
"minimum_reverification_interval"
,
default:
7
,
null:
false
t
.
string
"alternate_url"
t
.
string
"internal_url"
t
.
index
[
"access_key"
],
name:
"index_geo_nodes_on_access_key"
,
using: :btree
t
.
index
[
"primary"
],
name:
"index_geo_nodes_on_primary"
,
using: :btree
...
...
ee/db/post_migrate/20190404231137_remove_alternate_url_from_geo_nodes.rb
0 → 100644
View file @
a41b1367
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
# We are reverting the feature that created this column. This is for anyone who
# migrated while the feature still existed in master.
class
RemoveAlternateUrlFromGeoNodes
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
def
up
remove_column
(
:geo_nodes
,
:alternate_url
)
if
column_exists?
(
:geo_nodes
,
:alternate_url
)
end
def
down
add_column
:geo_nodes
,
:alternate_url
,
:string
end
end
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