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
6c6d2bf0
Commit
6c6d2bf0
authored
May 11, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `build_events` columns to `job_events`
parent
e261b4b8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
3 deletions
+75
-3
db/migrate/20170511082759_rename_web_hooks_build_events_to_job_events.rb
...0511082759_rename_web_hooks_build_events_to_job_events.rb
+18
-0
db/migrate/20170511083824_rename_services_build_events_to_job_events.rb
...70511083824_rename_services_build_events_to_job_events.rb
+18
-0
db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb
...00_cleanup_rename_web_hooks_build_events_to_job_events.rb
+18
-0
db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb
...000_cleanup_rename_services_build_events_to_job_events.rb
+18
-0
db/schema.rb
db/schema.rb
+3
-3
No files found.
db/migrate/20170511082759_rename_web_hooks_build_events_to_job_events.rb
0 → 100644
View file @
6c6d2bf0
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
RenameWebHooksBuildEventsToJobEvents
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
rename_column_concurrently
:web_hooks
,
:build_events
,
:job_events
end
def
down
cleanup_concurrent_column_rename
:web_hooks
,
:job_events
,
:build_events
end
end
db/migrate/20170511083824_rename_services_build_events_to_job_events.rb
0 → 100644
View file @
6c6d2bf0
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
RenameServicesBuildEventsToJobEvents
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
rename_column_concurrently
:services
,
:build_events
,
:job_events
end
def
down
cleanup_concurrent_column_rename
:services
,
:job_events
,
:build_events
end
end
db/post_migrate/20170511100900_cleanup_rename_web_hooks_build_events_to_job_events.rb
0 → 100644
View file @
6c6d2bf0
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
CleanupRenameWebHooksBuildEventsToJobEvents
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_rename
:web_hooks
,
:build_events
,
:job_events
end
def
down
rename_column_concurrently
:web_hooks
,
:job_events
,
:build_events
end
end
db/post_migrate/20170511101000_cleanup_rename_services_build_events_to_job_events.rb
0 → 100644
View file @
6c6d2bf0
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
CleanupRenameServicesBuildEventsToJobEvents
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_rename
:services
,
:build_events
,
:job_events
end
def
down
rename_column_concurrently
:services
,
:job_events
,
:build_events
end
end
db/schema.rb
View file @
6c6d2bf0
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,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:
201705
08190732
)
do
ActiveRecord
::
Schema
.
define
(
version:
201705
11101000
)
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
"plpgsql"
enable_extension
"plpgsql"
...
@@ -1123,13 +1123,13 @@ ActiveRecord::Schema.define(version: 20170508190732) do
...
@@ -1123,13 +1123,13 @@ ActiveRecord::Schema.define(version: 20170508190732) do
t
.
boolean
"merge_requests_events"
,
default:
true
t
.
boolean
"merge_requests_events"
,
default:
true
t
.
boolean
"tag_push_events"
,
default:
true
t
.
boolean
"tag_push_events"
,
default:
true
t
.
boolean
"note_events"
,
default:
true
,
null:
false
t
.
boolean
"note_events"
,
default:
true
,
null:
false
t
.
boolean
"build_events"
,
default:
false
,
null:
false
t
.
string
"category"
,
default:
"common"
,
null:
false
t
.
string
"category"
,
default:
"common"
,
null:
false
t
.
boolean
"default"
,
default:
false
t
.
boolean
"default"
,
default:
false
t
.
boolean
"wiki_page_events"
,
default:
true
t
.
boolean
"wiki_page_events"
,
default:
true
t
.
boolean
"pipeline_events"
,
default:
false
,
null:
false
t
.
boolean
"pipeline_events"
,
default:
false
,
null:
false
t
.
boolean
"confidential_issues_events"
,
default:
true
,
null:
false
t
.
boolean
"confidential_issues_events"
,
default:
true
,
null:
false
t
.
boolean
"commit_events"
,
default:
true
,
null:
false
t
.
boolean
"commit_events"
,
default:
true
,
null:
false
t
.
boolean
"job_events"
,
default:
false
,
null:
false
end
end
add_index
"services"
,
[
"project_id"
],
name:
"index_services_on_project_id"
,
using: :btree
add_index
"services"
,
[
"project_id"
],
name:
"index_services_on_project_id"
,
using: :btree
...
@@ -1399,11 +1399,11 @@ ActiveRecord::Schema.define(version: 20170508190732) do
...
@@ -1399,11 +1399,11 @@ ActiveRecord::Schema.define(version: 20170508190732) do
t
.
boolean
"tag_push_events"
,
default:
false
t
.
boolean
"tag_push_events"
,
default:
false
t
.
boolean
"note_events"
,
default:
false
,
null:
false
t
.
boolean
"note_events"
,
default:
false
,
null:
false
t
.
boolean
"enable_ssl_verification"
,
default:
true
t
.
boolean
"enable_ssl_verification"
,
default:
true
t
.
boolean
"build_events"
,
default:
false
,
null:
false
t
.
boolean
"wiki_page_events"
,
default:
false
,
null:
false
t
.
boolean
"wiki_page_events"
,
default:
false
,
null:
false
t
.
string
"token"
t
.
string
"token"
t
.
boolean
"pipeline_events"
,
default:
false
,
null:
false
t
.
boolean
"pipeline_events"
,
default:
false
,
null:
false
t
.
boolean
"confidential_issues_events"
,
default:
false
,
null:
false
t
.
boolean
"confidential_issues_events"
,
default:
false
,
null:
false
t
.
boolean
"job_events"
,
default:
false
,
null:
false
t
.
boolean
"repository_update_events"
,
default:
false
,
null:
false
t
.
boolean
"repository_update_events"
,
default:
false
,
null:
false
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