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
d3ac3c94
Commit
d3ac3c94
authored
Jul 25, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses for EE migrations
parent
43971ef2
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
12 additions
and
22 deletions
+12
-22
db/migrate/20161007073613_create_user_activities.rb
db/migrate/20161007073613_create_user_activities.rb
+1
-2
db/post_migrate/20161128170531_drop_user_activities_table.rb
db/post_migrate/20161128170531_drop_user_activities_table.rb
+0
-2
ee/db/geo/migrate/20180405074130_add_partial_index_project_repository_verification.rb
...4130_add_partial_index_project_repository_verification.rb
+2
-2
ee/db/geo/migrate/20180510223634_set_resync_flag_for_retried_projects.rb
...te/20180510223634_set_resync_flag_for_retried_projects.rb
+1
-1
ee/db/migrate/20151007110107_update_group_links.rb
ee/db/migrate/20151007110107_update_group_links.rb
+0
-1
ee/db/migrate/20151113115819_canonicalize_kerberos_identities.rb
...igrate/20151113115819_canonicalize_kerberos_identities.rb
+1
-0
ee/db/migrate/20160129075828_create_index_statuses.rb
ee/db/migrate/20160129075828_create_index_statuses.rb
+0
-1
ee/db/migrate/20160321161032_create_remote_mirrors_ee.rb
ee/db/migrate/20160321161032_create_remote_mirrors_ee.rb
+0
-1
ee/db/migrate/20160718210912_add_ldap_sync_state_to_groups.rb
...b/migrate/20160718210912_add_ldap_sync_state_to_groups.rb
+0
-1
ee/db/migrate/20161230123835_add_squash_to_merge_requests_ee.rb
...migrate/20161230123835_add_squash_to_merge_requests_ee.rb
+0
-1
ee/db/migrate/20170120123345_add_column_auditor_to_users.rb
ee/db/migrate/20170120123345_add_column_auditor_to_users.rb
+0
-2
ee/db/migrate/20170130113559_add_sync_schedule_to_projects_and_remote_projects.rb
...3559_add_sync_schedule_to_projects_and_remote_projects.rb
+0
-1
ee/db/migrate/20170522194603_create_geo_repository_updated_events.rb
...te/20170522194603_create_geo_repository_updated_events.rb
+0
-1
ee/db/migrate/20170522201800_create_geo_event_log.rb
ee/db/migrate/20170522201800_create_geo_event_log.rb
+0
-1
ee/db/migrate/20180206184810_create_project_repository_states.rb
...igrate/20180206184810_create_project_repository_states.rb
+1
-1
ee/db/migrate/20180209115333_create_chatops_tables.rb
ee/db/migrate/20180209115333_create_chatops_tables.rb
+1
-0
ee/db/migrate/20180308234102_add_partial_index_to_project_repository_states_checksum_columns.rb
...al_index_to_project_repository_states_checksum_columns.rb
+1
-1
ee/db/migrate/20180315160435_add_external_auth_mutual_tls_fields_to_project_settings.rb
...dd_external_auth_mutual_tls_fields_to_project_settings.rb
+0
-1
ee/db/migrate/20180416112831_drop_null_constraint_geo_events_storage_path.rb
...416112831_drop_null_constraint_geo_events_storage_path.rb
+1
-1
ee/db/migrate/20180423165301_add_negative_matching_commit_message_push_rule.rb
...3165301_add_negative_matching_commit_message_push_rule.rb
+0
-1
ee/db/migrate/20180503154922_add_indexes_to_project_mirror_data_ee.rb
...e/20180503154922_add_indexes_to_project_mirror_data_ee.rb
+1
-0
ee/db/migrate/20180612175636_add_geo_nodes_verification_max_capacity.rb
...20180612175636_add_geo_nodes_verification_max_capacity.rb
+1
-0
ee/db/post_migrate/20180417102933_drop_repository_storage_events_for_geo_events.rb
...17102933_drop_repository_storage_events_for_geo_events.rb
+1
-0
No files found.
db/migrate/20161007073613_create_user_activities.rb
View file @
d3ac3c94
# rubocop:disable Migration/Timestamps
# rubocop:disable Migration/Datetime
class
CreateUserActivities
<
ActiveRecord
::
Migration
class
CreateUserActivities
<
ActiveRecord
::
Migration
# Set this constant to true if this migration requires downtime.
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
true
DOWNTIME
=
true
...
...
db/post_migrate/20161128170531_drop_user_activities_table.rb
View file @
d3ac3c94
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
# for more information on how to write migrations for GitLab.
# rubocop:disable Migration/Datetime
class
DropUserActivitiesTable
<
ActiveRecord
::
Migration
class
DropUserActivitiesTable
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
...
...
ee/db/geo/migrate/20180405074130_add_partial_index_project_repository_verification.rb
View file @
d3ac3c94
ee/db/geo/migrate/20180510223634_set_resync_flag_for_retried_projects.rb
View file @
d3ac3c94
ee/db/migrate/20151007110107_update_group_links.rb
View file @
d3ac3c94
# rubocop:disable Rails/ReversibleMigration
class
UpdateGroupLinks
<
ActiveRecord
::
Migration
class
UpdateGroupLinks
<
ActiveRecord
::
Migration
def
change
def
change
provider
=
quote_string
(
Gitlab
::
Auth
::
LDAP
::
Config
.
providers
.
first
)
provider
=
quote_string
(
Gitlab
::
Auth
::
LDAP
::
Config
.
providers
.
first
)
...
...
ee/db/migrate/20151113115819_canonicalize_kerberos_identities.rb
View file @
d3ac3c94
...
@@ -19,6 +19,7 @@ class CanonicalizeKerberosIdentities < ActiveRecord::Migration
...
@@ -19,6 +19,7 @@ class CanonicalizeKerberosIdentities < ActiveRecord::Migration
def
change
def
change
reversible
do
|
dir
|
reversible
do
|
dir
|
# rubocop:disable Cop/AvoidReturnFromBlocks
return
unless
kerberos_default_realm
.
present?
return
unless
kerberos_default_realm
.
present?
dir
.
up
do
dir
.
up
do
...
...
ee/db/migrate/20160129075828_create_index_statuses.rb
View file @
d3ac3c94
# rubocop:disable Migration/Timestamps
# rubocop:disable Migration/Timestamps
# rubocop:disable Migration/Datetime
class
CreateIndexStatuses
<
ActiveRecord
::
Migration
class
CreateIndexStatuses
<
ActiveRecord
::
Migration
def
change
def
change
create_table
:index_statuses
do
|
t
|
create_table
:index_statuses
do
|
t
|
...
...
ee/db/migrate/20160321161032_create_remote_mirrors_ee.rb
View file @
d3ac3c94
# rubocop:disable Migration/Datetime
# rubocop:disable Migration/Timestamps
# rubocop:disable Migration/Timestamps
class
CreateRemoteMirrorsEE
<
ActiveRecord
::
Migration
class
CreateRemoteMirrorsEE
<
ActiveRecord
::
Migration
def
up
def
up
...
...
ee/db/migrate/20160718210912_add_ldap_sync_state_to_groups.rb
View file @
d3ac3c94
# Migration type: online without errors (works on previous version and new one)
# Migration type: online without errors (works on previous version and new one)
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
# rubocop:disable Migration/Datetime
# rubocop:disable Migration/Datetime
# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateLargeTable
class
AddLdapSyncStateToGroups
<
ActiveRecord
::
Migration
class
AddLdapSyncStateToGroups
<
ActiveRecord
::
Migration
...
...
ee/db/migrate/20161230123835_add_squash_to_merge_requests_ee.rb
View file @
d3ac3c94
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateLargeTable
class
AddSquashToMergeRequestsEE
<
ActiveRecord
::
Migration
class
AddSquashToMergeRequestsEE
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
...
...
ee/db/migrate/20170120123345_add_column_auditor_to_users.rb
View file @
d3ac3c94
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
# for more information on how to write migrations for GitLab.
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateLargeTable
class
AddColumnAuditorToUsers
<
ActiveRecord
::
Migration
class
AddColumnAuditorToUsers
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
...
...
ee/db/migrate/20170130113559_add_sync_schedule_to_projects_and_remote_projects.rb
View file @
d3ac3c94
# rubocop:disable Migration/AddColumnWithDefaultToLargeTable
# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateLargeTable
class
AddSyncScheduleToProjectsAndRemoteProjects
<
ActiveRecord
::
Migration
class
AddSyncScheduleToProjectsAndRemoteProjects
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
MigrationHelpers
...
...
ee/db/migrate/20170522194603_create_geo_repository_updated_events.rb
View file @
d3ac3c94
# rubocop:disable Migration/Datetime
class
CreateGeoRepositoryUpdatedEvents
<
ActiveRecord
::
Migration
class
CreateGeoRepositoryUpdatedEvents
<
ActiveRecord
::
Migration
DOWNTIME
=
false
DOWNTIME
=
false
...
...
ee/db/migrate/20170522201800_create_geo_event_log.rb
View file @
d3ac3c94
# rubocop:disable Migration/Datetime
class
CreateGeoEventLog
<
ActiveRecord
::
Migration
class
CreateGeoEventLog
<
ActiveRecord
::
Migration
DOWNTIME
=
false
DOWNTIME
=
false
...
...
ee/db/migrate/20180206184810_create_project_repository_states.rb
View file @
d3ac3c94
class
CreateProjectRepositoryStates
<
ActiveRecord
::
Migration
class
CreateProjectRepositoryStates
<
ActiveRecord
::
Migration
DOWNTIME
=
false
DOWNTIME
=
false
def
change
def
change
...
...
ee/db/migrate/20180209115333_create_chatops_tables.rb
View file @
d3ac3c94
...
@@ -18,6 +18,7 @@ class CreateChatopsTables < ActiveRecord::Migration
...
@@ -18,6 +18,7 @@ class CreateChatopsTables < ActiveRecord::Migration
t
.
index
:pipeline_id
,
unique:
true
t
.
index
:pipeline_id
,
unique:
true
end
end
# rubocop:disable Migration/AddConcurrentForeignKey
add_foreign_key
:ci_pipeline_chat_data
,
:ci_pipelines
,
add_foreign_key
:ci_pipeline_chat_data
,
:ci_pipelines
,
column: :pipeline_id
,
column: :pipeline_id
,
on_delete: :cascade
on_delete: :cascade
...
...
ee/db/migrate/20180308234102_add_partial_index_to_project_repository_states_checksum_columns.rb
View file @
d3ac3c94
ee/db/migrate/20180315160435_add_external_auth_mutual_tls_fields_to_project_settings.rb
View file @
d3ac3c94
class
AddExternalAuthMutualTlsFieldsToProjectSettings
<
ActiveRecord
::
Migration
class
AddExternalAuthMutualTlsFieldsToProjectSettings
<
ActiveRecord
::
Migration
DOWNTIME
=
false
DOWNTIME
=
false
def
change
def
change
...
...
ee/db/migrate/20180416112831_drop_null_constraint_geo_events_storage_path.rb
View file @
d3ac3c94
ee/db/migrate/20180423165301_add_negative_matching_commit_message_push_rule.rb
View file @
d3ac3c94
...
@@ -11,4 +11,3 @@ class AddNegativeMatchingCommitMessagePushRule < ActiveRecord::Migration
...
@@ -11,4 +11,3 @@ class AddNegativeMatchingCommitMessagePushRule < ActiveRecord::Migration
remove_column
:push_rules
,
:commit_message_negative_regex
remove_column
:push_rules
,
:commit_message_negative_regex
end
end
end
end
ee/db/migrate/20180503154922_add_indexes_to_project_mirror_data_ee.rb
View file @
d3ac3c94
...
@@ -10,6 +10,7 @@ class AddIndexesToProjectMirrorDataEE < ActiveRecord::Migration
...
@@ -10,6 +10,7 @@ class AddIndexesToProjectMirrorDataEE < ActiveRecord::Migration
end
end
def
down
def
down
# rubocop:disable Migration/RemoveIndex
remove_index
:project_mirror_data
,
:last_successful_update_at
if
index_exists?
:project_mirror_data
,
:last_successful_update_at
remove_index
:project_mirror_data
,
:last_successful_update_at
if
index_exists?
:project_mirror_data
,
:last_successful_update_at
end
end
end
end
ee/db/migrate/20180612175636_add_geo_nodes_verification_max_capacity.rb
View file @
d3ac3c94
...
@@ -4,6 +4,7 @@ class AddGeoNodesVerificationMaxCapacity < ActiveRecord::Migration
...
@@ -4,6 +4,7 @@ class AddGeoNodesVerificationMaxCapacity < ActiveRecord::Migration
DOWNTIME
=
false
DOWNTIME
=
false
def
change
def
change
# rubocop:disable Migration/AddColumn
add_column
:geo_nodes
,
:verification_max_capacity
,
:integer
,
default:
100
,
null:
false
add_column
:geo_nodes
,
:verification_max_capacity
,
:integer
,
default:
100
,
null:
false
end
end
end
end
ee/db/post_migrate/20180417102933_drop_repository_storage_events_for_geo_events.rb
View file @
d3ac3c94
...
@@ -29,6 +29,7 @@ class DropRepositoryStorageEventsForGeoEvents < ActiveRecord::Migration
...
@@ -29,6 +29,7 @@ class DropRepositoryStorageEventsForGeoEvents < ActiveRecord::Migration
private
private
def
update_repository_storage_path
(
table
)
def
update_repository_storage_path
(
table
)
# rubocop:disable Migration/UpdateColumnInBatches
update_column_in_batches
(
table
,
:repository_storage_path
,
update_statement
)
do
|
t
,
q
|
update_column_in_batches
(
table
,
:repository_storage_path
,
update_statement
)
do
|
t
,
q
|
q
.
where
(
t
[
:repository_storage_path
].
eq
(
nil
))
q
.
where
(
t
[
:repository_storage_path
].
eq
(
nil
))
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