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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
bae37010
Commit
bae37010
authored
Feb 02, 2016
by
Grzegorz Bizon
Committed by
Grzegorz Bizon
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build eraseable columns to ci builds table
parent
bd7c52c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
app/models/ci/build.rb
app/models/ci/build.rb
+3
-0
db/migrate/20160202091601_add_eraseable_to_ci_build.rb
db/migrate/20160202091601_add_eraseable_to_ci_build.rb
+8
-0
db/schema.rb
db/schema.rb
+5
-0
No files found.
app/models/ci/build.rb
View file @
bae37010
...
@@ -31,6 +31,9 @@
...
@@ -31,6 +31,9 @@
# artifacts_file :text
# artifacts_file :text
# gl_project_id :integer
# gl_project_id :integer
# artifacts_metadata :text
# artifacts_metadata :text
# erased :boolean default(FALSE)
# erased_by_id :integer
# erased_at :datetime
#
#
module
Ci
module
Ci
...
...
db/migrate/20160202091601_add_eraseable_to_ci_build.rb
0 → 100644
View file @
bae37010
class
AddEraseableToCiBuild
<
ActiveRecord
::
Migration
def
change
add_column
:ci_builds
,
:erased
,
:boolean
,
default:
false
add_reference
:ci_builds
,
:erased_by
,
references: :users
,
index:
true
add_foreign_key
:ci_builds
,
:users
,
column: :erased_by_id
add_column
:ci_builds
,
:erased_at
,
:datetime
end
end
db/schema.rb
View file @
bae37010
...
@@ -129,6 +129,9 @@ ActiveRecord::Schema.define(version: 20160209130428) do
...
@@ -129,6 +129,9 @@ ActiveRecord::Schema.define(version: 20160209130428) do
t
.
text
"artifacts_file"
t
.
text
"artifacts_file"
t
.
integer
"gl_project_id"
t
.
integer
"gl_project_id"
t
.
text
"artifacts_metadata"
t
.
text
"artifacts_metadata"
t
.
boolean
"erased"
,
default:
false
t
.
integer
"erased_by_id"
t
.
datetime
"erased_at"
end
end
add_index
"ci_builds"
,
[
"commit_id"
,
"stage_idx"
,
"created_at"
],
name:
"index_ci_builds_on_commit_id_and_stage_idx_and_created_at"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"stage_idx"
,
"created_at"
],
name:
"index_ci_builds_on_commit_id_and_stage_idx_and_created_at"
,
using: :btree
...
@@ -136,6 +139,7 @@ ActiveRecord::Schema.define(version: 20160209130428) do
...
@@ -136,6 +139,7 @@ ActiveRecord::Schema.define(version: 20160209130428) do
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"name"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_name_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"name"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_name_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
],
name:
"index_ci_builds_on_commit_id"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
],
name:
"index_ci_builds_on_commit_id"
,
using: :btree
add_index
"ci_builds"
,
[
"erased_by_id"
],
name:
"index_ci_builds_on_erased_by_id"
,
using: :btree
add_index
"ci_builds"
,
[
"gl_project_id"
],
name:
"index_ci_builds_on_gl_project_id"
,
using: :btree
add_index
"ci_builds"
,
[
"gl_project_id"
],
name:
"index_ci_builds_on_gl_project_id"
,
using: :btree
add_index
"ci_builds"
,
[
"project_id"
,
"commit_id"
],
name:
"index_ci_builds_on_project_id_and_commit_id"
,
using: :btree
add_index
"ci_builds"
,
[
"project_id"
,
"commit_id"
],
name:
"index_ci_builds_on_project_id_and_commit_id"
,
using: :btree
add_index
"ci_builds"
,
[
"project_id"
],
name:
"index_ci_builds_on_project_id"
,
using: :btree
add_index
"ci_builds"
,
[
"project_id"
],
name:
"index_ci_builds_on_project_id"
,
using: :btree
...
@@ -919,4 +923,5 @@ ActiveRecord::Schema.define(version: 20160209130428) do
...
@@ -919,4 +923,5 @@ ActiveRecord::Schema.define(version: 20160209130428) do
add_index
"web_hooks"
,
[
"created_at"
,
"id"
],
name:
"index_web_hooks_on_created_at_and_id"
,
using: :btree
add_index
"web_hooks"
,
[
"created_at"
,
"id"
],
name:
"index_web_hooks_on_created_at_and_id"
,
using: :btree
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_index
"web_hooks"
,
[
"project_id"
],
name:
"index_web_hooks_on_project_id"
,
using: :btree
add_foreign_key
"ci_builds"
,
"users"
,
column:
"erased_by_id"
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