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
a98493ed
Commit
a98493ed
authored
Aug 02, 2019
by
Alex Buijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add migration for CE as well
parent
5edaf4e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
db/migrate/20190801193427_rename_application_settings_snowplow_collector_uri_column.rb
...ame_application_settings_snowplow_collector_uri_column.rb
+17
-0
db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb
...nup_application_settings_snowplow_collector_uri_rename.rb
+17
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20190801193427_rename_application_settings_snowplow_collector_uri_column.rb
0 → 100644
View file @
a98493ed
# frozen_string_literal: true
class
RenameApplicationSettingsSnowplowCollectorUriColumn
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
rename_column_concurrently
:application_settings
,
:snowplow_collector_uri
,
:snowplow_collector_hostname
end
def
down
cleanup_concurrent_column_rename
:application_settings
,
:snowplow_collector_hostname
,
:snowplow_collector_uri
end
end
db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb
0 → 100644
View file @
a98493ed
# frozen_string_literal: true
class
CleanupApplicationSettingsSnowplowCollectorUriRename
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_rename
:application_settings
,
:snowplow_collector_uri
,
:snowplow_collector_hostname
end
def
down
rename_column_concurrently
:application_settings
,
:snowplow_collector_hostname
,
:snowplow_collector_uri
end
end
db/schema.rb
View file @
a98493ed
...
...
@@ -195,7 +195,6 @@ ActiveRecord::Schema.define(version: 2019_08_02_235445) do
t
.
boolean
"pseudonymizer_enabled"
,
default:
false
,
null:
false
t
.
boolean
"hide_third_party_offers"
,
default:
false
,
null:
false
t
.
boolean
"snowplow_enabled"
,
default:
false
,
null:
false
t
.
string
"snowplow_collector_uri"
t
.
string
"snowplow_site_id"
t
.
string
"snowplow_cookie_domain"
t
.
boolean
"instance_statistics_visibility_private"
,
default:
false
,
null:
false
...
...
@@ -231,6 +230,7 @@ ActiveRecord::Schema.define(version: 2019_08_02_235445) do
t
.
integer
"raw_blob_request_limit"
,
default:
300
,
null:
false
t
.
boolean
"allow_local_requests_from_web_hooks_and_services"
,
default:
false
,
null:
false
t
.
boolean
"allow_local_requests_from_system_hooks"
,
default:
true
,
null:
false
t
.
string
"snowplow_collector_hostname"
t
.
index
[
"custom_project_templates_group_id"
],
name:
"index_application_settings_on_custom_project_templates_group_id"
t
.
index
[
"file_template_project_id"
],
name:
"index_application_settings_on_file_template_project_id"
t
.
index
[
"usage_stats_set_by_user_id"
],
name:
"index_application_settings_on_usage_stats_set_by_user_id"
...
...
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