Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
8150cf25
Commit
8150cf25
authored
Sep 18, 2015
by
Jacob Vosmaer
Browse files
Commit final schema
parent
857ed504
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/schema.rb
View file @
8150cf25
...
...
@@ -11,19 +11,19 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20150
8242
0223
8
)
do
ActiveRecord
::
Schema
.
define
(
version:
20150
9141
02
1
23
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
create_table
"application_settings"
,
force:
true
do
|
t
|
create_table
"
ci_
application_settings"
,
force:
true
do
|
t
|
t
.
boolean
"all_broken_builds"
t
.
boolean
"add_pusher"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
create_table
"builds"
,
force:
true
do
|
t
|
create_table
"
ci_
builds"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
t
.
string
"status"
t
.
datetime
"finished_at"
...
...
@@ -44,12 +44,12 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
integer
"trigger_request_id"
end
add_index
"builds"
,
[
"commit_id"
],
name:
"index_builds_on_commit_id"
,
using: :btree
add_index
"builds"
,
[
"project_id"
,
"commit_id"
],
name:
"index_builds_on_project_id_and_commit_id"
,
using: :btree
add_index
"builds"
,
[
"project_id"
],
name:
"index_builds_on_project_id"
,
using: :btree
add_index
"builds"
,
[
"runner_id"
],
name:
"index_builds_on_runner_id"
,
using: :btree
add_index
"
ci_
builds"
,
[
"commit_id"
],
name:
"index_
ci_
builds_on_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"
,
[
"runner_id"
],
name:
"index_
ci_
builds_on_runner_id"
,
using: :btree
create_table
"commits"
,
force:
true
do
|
t
|
create_table
"
ci_
commits"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
t
.
string
"ref"
t
.
string
"sha"
...
...
@@ -62,13 +62,13 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
datetime
"committed_at"
end
add_index
"commits"
,
[
"project_id"
,
"committed_at"
,
"id"
],
name:
"index_commits_on_project_id_and_committed_at_and_id"
,
using: :btree
add_index
"commits"
,
[
"project_id"
,
"committed_at"
],
name:
"index_commits_on_project_id_and_committed_at"
,
using: :btree
add_index
"commits"
,
[
"project_id"
,
"sha"
],
name:
"index_commits_on_project_id_and_sha"
,
using: :btree
add_index
"commits"
,
[
"project_id"
],
name:
"index_commits_on_project_id"
,
using: :btree
add_index
"commits"
,
[
"sha"
],
name:
"index_commits_on_sha"
,
using: :btree
add_index
"
ci_
commits"
,
[
"project_id"
,
"committed_at"
,
"id"
],
name:
"index_
ci_
commits_on_project_id_and_committed_at_and_id"
,
using: :btree
add_index
"
ci_
commits"
,
[
"project_id"
,
"committed_at"
],
name:
"index_
ci_
commits_on_project_id_and_committed_at"
,
using: :btree
add_index
"
ci_
commits"
,
[
"project_id"
,
"sha"
],
name:
"index_
ci_
commits_on_project_id_and_sha"
,
using: :btree
add_index
"
ci_
commits"
,
[
"project_id"
],
name:
"index_
ci_
commits_on_project_id"
,
using: :btree
add_index
"
ci_
commits"
,
[
"sha"
],
name:
"index_
ci_
commits_on_sha"
,
using: :btree
create_table
"events"
,
force:
true
do
|
t
|
create_table
"
ci_
events"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
t
.
integer
"user_id"
t
.
integer
"is_admin"
...
...
@@ -77,11 +77,11 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
datetime
"updated_at"
end
add_index
"events"
,
[
"created_at"
],
name:
"index_events_on_created_at"
,
using: :btree
add_index
"events"
,
[
"is_admin"
],
name:
"index_events_on_is_admin"
,
using: :btree
add_index
"events"
,
[
"project_id"
],
name:
"index_events_on_project_id"
,
using: :btree
add_index
"
ci_
events"
,
[
"created_at"
],
name:
"index_
ci_
events_on_created_at"
,
using: :btree
add_index
"
ci_
events"
,
[
"is_admin"
],
name:
"index_
ci_
events_on_is_admin"
,
using: :btree
add_index
"
ci_
events"
,
[
"project_id"
],
name:
"index_
ci_
events_on_project_id"
,
using: :btree
create_table
"jobs"
,
force:
true
do
|
t
|
create_table
"
ci_
jobs"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
text
"commands"
t
.
boolean
"active"
,
default:
true
,
null:
false
...
...
@@ -95,10 +95,10 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
datetime
"deleted_at"
end
add_index
"jobs"
,
[
"deleted_at"
],
name:
"index_jobs_on_deleted_at"
,
using: :btree
add_index
"jobs"
,
[
"project_id"
],
name:
"index_jobs_on_project_id"
,
using: :btree
add_index
"
ci_
jobs"
,
[
"deleted_at"
],
name:
"index_
ci_
jobs_on_deleted_at"
,
using: :btree
add_index
"
ci_
jobs"
,
[
"project_id"
],
name:
"index_
ci_
jobs_on_project_id"
,
using: :btree
create_table
"projects"
,
force:
true
do
|
t
|
create_table
"
ci_
projects"
,
force:
true
do
|
t
|
t
.
string
"name"
,
null:
false
t
.
integer
"timeout"
,
default:
3600
,
null:
false
t
.
datetime
"created_at"
...
...
@@ -121,17 +121,17 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
text
"generated_yaml_config"
end
create_table
"runner_projects"
,
force:
true
do
|
t
|
create_table
"
ci_
runner_projects"
,
force:
true
do
|
t
|
t
.
integer
"runner_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
add_index
"runner_projects"
,
[
"project_id"
],
name:
"index_runner_projects_on_project_id"
,
using: :btree
add_index
"runner_projects"
,
[
"runner_id"
],
name:
"index_runner_projects_on_runner_id"
,
using: :btree
add_index
"
ci_
runner_projects"
,
[
"project_id"
],
name:
"index_
ci_
runner_projects_on_project_id"
,
using: :btree
add_index
"
ci_
runner_projects"
,
[
"runner_id"
],
name:
"index_
ci_
runner_projects_on_runner_id"
,
using: :btree
create_table
"runners"
,
force:
true
do
|
t
|
create_table
"
ci_
runners"
,
force:
true
do
|
t
|
t
.
string
"token"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
...
...
@@ -146,7 +146,7 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
string
"architecture"
end
create_table
"services"
,
force:
true
do
|
t
|
create_table
"
ci_
services"
,
force:
true
do
|
t
|
t
.
string
"type"
t
.
string
"title"
t
.
integer
"project_id"
,
null:
false
...
...
@@ -156,19 +156,9 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
text
"properties"
end
add_index
"services"
,
[
"project_id"
],
name:
"index_services_on_project_id"
,
using: :btree
add_index
"
ci_
services"
,
[
"project_id"
],
name:
"index_
ci_
services_on_project_id"
,
using: :btree
create_table
"sessions"
,
force:
true
do
|
t
|
t
.
string
"session_id"
,
null:
false
t
.
text
"data"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
add_index
"sessions"
,
[
"session_id"
],
name:
"index_sessions_on_session_id"
,
using: :btree
add_index
"sessions"
,
[
"updated_at"
],
name:
"index_sessions_on_updated_at"
,
using: :btree
create_table
"taggings"
,
force:
true
do
|
t
|
create_table
"ci_taggings"
,
force:
true
do
|
t
|
t
.
integer
"tag_id"
t
.
integer
"taggable_id"
t
.
string
"taggable_type"
...
...
@@ -178,17 +168,17 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
datetime
"created_at"
end
add_index
"taggings"
,
[
"tag_id"
,
"taggable_id"
,
"taggable_type"
,
"context"
,
"tagger_id"
,
"tagger_type"
],
name:
"taggings_idx"
,
unique:
true
,
using: :btree
add_index
"taggings"
,
[
"taggable_id"
,
"taggable_type"
,
"context"
],
name:
"index_taggings_on_taggable_id_and_taggable_type_and_context"
,
using: :btree
add_index
"
ci_
taggings"
,
[
"tag_id"
,
"taggable_id"
,
"taggable_type"
,
"context"
,
"tagger_id"
,
"tagger_type"
],
name:
"taggings_idx"
,
unique:
true
,
using: :btree
add_index
"
ci_
taggings"
,
[
"taggable_id"
,
"taggable_type"
,
"context"
],
name:
"index_
ci_
taggings_on_taggable_id_and_taggable_type_and_context"
,
using: :btree
create_table
"tags"
,
force:
true
do
|
t
|
create_table
"
ci_
tags"
,
force:
true
do
|
t
|
t
.
string
"name"
t
.
integer
"taggings_count"
,
default:
0
end
add_index
"tags"
,
[
"name"
],
name:
"index_tags_on_name"
,
unique:
true
,
using: :btree
add_index
"
ci_
tags"
,
[
"name"
],
name:
"index_
ci_
tags_on_name"
,
unique:
true
,
using: :btree
create_table
"trigger_requests"
,
force:
true
do
|
t
|
create_table
"
ci_
trigger_requests"
,
force:
true
do
|
t
|
t
.
integer
"trigger_id"
,
null:
false
t
.
text
"variables"
t
.
datetime
"created_at"
...
...
@@ -196,7 +186,7 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
integer
"commit_id"
end
create_table
"triggers"
,
force:
true
do
|
t
|
create_table
"
ci_
triggers"
,
force:
true
do
|
t
|
t
.
string
"token"
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"deleted_at"
...
...
@@ -204,9 +194,9 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
datetime
"updated_at"
end
add_index
"triggers"
,
[
"deleted_at"
],
name:
"index_triggers_on_deleted_at"
,
using: :btree
add_index
"
ci_
triggers"
,
[
"deleted_at"
],
name:
"index_
ci_
triggers_on_deleted_at"
,
using: :btree
create_table
"variables"
,
force:
true
do
|
t
|
create_table
"
ci_
variables"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"key"
t
.
text
"value"
...
...
@@ -215,13 +205,23 @@ ActiveRecord::Schema.define(version: 20150824202238) do
t
.
string
"encrypted_value_iv"
end
add_index
"variables"
,
[
"project_id"
],
name:
"index_variables_on_project_id"
,
using: :btree
add_index
"
ci_
variables"
,
[
"project_id"
],
name:
"index_
ci_
variables_on_project_id"
,
using: :btree
create_table
"web_hooks"
,
force:
true
do
|
t
|
create_table
"
ci_
web_hooks"
,
force:
true
do
|
t
|
t
.
string
"url"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
create_table
"sessions"
,
force:
true
do
|
t
|
t
.
string
"session_id"
,
null:
false
t
.
text
"data"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
add_index
"sessions"
,
[
"session_id"
],
name:
"index_sessions_on_session_id"
,
using: :btree
add_index
"sessions"
,
[
"updated_at"
],
name:
"index_sessions_on_updated_at"
,
using: :btree
end
Write
Preview
Supports
Markdown
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