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
198f4b70
Commit
198f4b70
authored
Oct 05, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix db/schema.rb
parent
f42078f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
58 deletions
+36
-58
db/schema.rb
db/schema.rb
+36
-58
No files found.
db/schema.rb
View file @
198f4b70
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
ActiveRecord
::
Schema
.
define
(
version:
20151005075649
)
do
ActiveRecord
::
Schema
.
define
(
version:
20151005075649
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
create_table
"abuse_reports"
,
force:
true
do
|
t
|
create_table
"abuse_reports"
,
force:
true
do
|
t
|
t
.
integer
"reporter_id"
t
.
integer
"reporter_id"
t
.
integer
"user_id"
t
.
integer
"user_id"
...
@@ -42,8 +45,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -42,8 +45,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
string
"after_sign_out_path"
t
.
string
"after_sign_out_path"
t
.
integer
"session_expire_delay"
,
default:
10080
,
null:
false
t
.
integer
"session_expire_delay"
,
default:
10080
,
null:
false
t
.
text
"import_sources"
t
.
text
"import_sources"
t
.
boolean
"ci_enabled"
,
default:
true
,
null:
false
t
.
text
"help_page_text"
t
.
text
"help_page_text"
t
.
boolean
"ci_enabled"
,
default:
true
,
null:
false
end
end
create_table
"audit_events"
,
force:
true
do
|
t
|
create_table
"audit_events"
,
force:
true
do
|
t
|
...
@@ -82,12 +85,12 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -82,12 +85,12 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
integer
"project_id"
t
.
integer
"project_id"
t
.
string
"status"
t
.
string
"status"
t
.
datetime
"finished_at"
t
.
datetime
"finished_at"
t
.
text
"trace"
,
limit:
2147483647
t
.
text
"trace"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
datetime
"started_at"
t
.
datetime
"started_at"
t
.
integer
"runner_id"
t
.
integer
"runner_id"
t
.
float
"coverage"
,
limit:
24
t
.
float
"coverage"
t
.
integer
"commit_id"
t
.
integer
"commit_id"
t
.
text
"commands"
t
.
text
"commands"
t
.
integer
"job_id"
t
.
integer
"job_id"
...
@@ -97,42 +100,24 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -97,42 +100,24 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
boolean
"allow_failure"
,
default:
false
,
null:
false
t
.
boolean
"allow_failure"
,
default:
false
,
null:
false
t
.
string
"stage"
t
.
string
"stage"
t
.
integer
"trigger_request_id"
t
.
integer
"trigger_request_id"
t
.
integer
"gl_project_id"
t
.
integer
"stage_idx"
t
.
integer
"stage_idx"
t
.
boolean
"tag"
t
.
boolean
"tag"
t
.
string
"ref"
t
.
string
"ref"
t
.
text
"push_data"
t
.
integer
"user_id"
t
.
integer
"user_id"
end
end
add_index
"ci_builds"
,
[
"commit_id"
,
"name"
],
name:
"index_ci_builds_on_commit_id_and_name"
,
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
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"
],
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"
,
[
"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
add_index
"ci_builds"
,
[
"runner_id"
],
name:
"index_ci_builds_on_runner_id"
,
using: :btree
add_index
"ci_builds"
,
[
"runner_id"
],
name:
"index_ci_builds_on_runner_id"
,
using: :btree
create_table
"ci_commit_statuses"
,
force:
true
do
|
t
|
t
.
integer
"commit_id"
t
.
string
"sha"
t
.
string
"ref"
t
.
string
"state"
t
.
string
"target_url"
t
.
string
"description"
t
.
string
"context"
,
default:
"default"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
add_index
"ci_commit_statuses"
,
[
"commit_id"
,
"context"
,
"ref"
],
name:
"index_ci_commit_statuses_on_commit_id_and_context_and_ref"
,
using: :btree
add_index
"ci_commit_statuses"
,
[
"commit_id"
,
"ref"
],
name:
"index_ci_commit_statuses_on_commit_id_and_ref"
,
using: :btree
create_table
"ci_commits"
,
force:
true
do
|
t
|
create_table
"ci_commits"
,
force:
true
do
|
t
|
t
.
integer
"project_id"
t
.
integer
"project_id"
t
.
string
"ref"
t
.
string
"ref"
t
.
string
"sha"
t
.
string
"sha"
t
.
string
"before_sha"
t
.
string
"before_sha"
t
.
text
"push_data"
,
limit:
16777215
t
.
text
"push_data"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
boolean
"tag"
,
default:
false
t
.
boolean
"tag"
,
default:
false
...
@@ -154,7 +139,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -154,7 +139,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
text
"description"
t
.
text
"description"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
integer
"gl_project_id"
end
end
add_index
"ci_events"
,
[
"created_at"
],
name:
"index_ci_events_on_created_at"
,
using: :btree
add_index
"ci_events"
,
[
"created_at"
],
name:
"index_ci_events_on_created_at"
,
using: :btree
...
@@ -206,7 +190,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -206,7 +190,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
integer
"gl_project_id"
end
end
add_index
"ci_runner_projects"
,
[
"project_id"
],
name:
"index_ci_runner_projects_on_project_id"
,
using: :btree
add_index
"ci_runner_projects"
,
[
"project_id"
],
name:
"index_ci_runner_projects_on_project_id"
,
using: :btree
...
@@ -235,7 +218,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -235,7 +218,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
boolean
"active"
,
default:
false
,
null:
false
t
.
boolean
"active"
,
default:
false
,
null:
false
t
.
text
"properties"
t
.
text
"properties"
t
.
integer
"gl_project_id"
end
end
add_index
"ci_services"
,
[
"project_id"
],
name:
"index_ci_services_on_project_id"
,
using: :btree
add_index
"ci_services"
,
[
"project_id"
],
name:
"index_ci_services_on_project_id"
,
using: :btree
...
@@ -284,7 +266,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -284,7 +266,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
datetime
"deleted_at"
t
.
datetime
"deleted_at"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
integer
"gl_project_id"
end
end
add_index
"ci_triggers"
,
[
"deleted_at"
],
name:
"index_ci_triggers_on_deleted_at"
,
using: :btree
add_index
"ci_triggers"
,
[
"deleted_at"
],
name:
"index_ci_triggers_on_deleted_at"
,
using: :btree
...
@@ -296,7 +277,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -296,7 +277,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
text
"encrypted_value"
t
.
text
"encrypted_value"
t
.
string
"encrypted_value_salt"
t
.
string
"encrypted_value_salt"
t
.
string
"encrypted_value_iv"
t
.
string
"encrypted_value_iv"
t
.
integer
"gl_project_id"
end
end
add_index
"ci_variables"
,
[
"project_id"
],
name:
"index_ci_variables_on_project_id"
,
using: :btree
add_index
"ci_variables"
,
[
"project_id"
],
name:
"index_ci_variables_on_project_id"
,
using: :btree
...
@@ -306,7 +286,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -306,7 +286,6 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
integer
"gl_project_id"
end
end
create_table
"deploy_keys_projects"
,
force:
true
do
|
t
|
create_table
"deploy_keys_projects"
,
force:
true
do
|
t
|
...
@@ -452,8 +431,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -452,8 +431,8 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table
"merge_request_diffs"
,
force:
true
do
|
t
|
create_table
"merge_request_diffs"
,
force:
true
do
|
t
|
t
.
string
"state"
t
.
string
"state"
t
.
text
"st_commits"
,
limit:
2147483647
t
.
text
"st_commits"
t
.
text
"st_diffs"
,
limit:
2147483647
t
.
text
"st_diffs"
t
.
integer
"merge_request_id"
,
null:
false
t
.
integer
"merge_request_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
...
@@ -538,7 +517,7 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -538,7 +517,7 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
string
"commit_id"
t
.
string
"commit_id"
t
.
integer
"noteable_id"
t
.
integer
"noteable_id"
t
.
boolean
"system"
,
default:
false
,
null:
false
t
.
boolean
"system"
,
default:
false
,
null:
false
t
.
text
"st_diff"
,
limit:
2147483647
t
.
text
"st_diff"
t
.
integer
"updated_by_id"
t
.
integer
"updated_by_id"
end
end
...
@@ -621,12 +600,11 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -621,12 +600,11 @@ ActiveRecord::Schema.define(version: 20151005075649) do
t
.
boolean
"archived"
,
default:
false
,
null:
false
t
.
boolean
"archived"
,
default:
false
,
null:
false
t
.
string
"avatar"
t
.
string
"avatar"
t
.
string
"import_status"
t
.
string
"import_status"
t
.
float
"repository_size"
,
limit:
24
,
default:
0.0
t
.
float
"repository_size"
,
default:
0.0
t
.
integer
"star_count"
,
default:
0
,
null:
false
t
.
integer
"star_count"
,
default:
0
,
null:
false
t
.
string
"import_type"
t
.
string
"import_type"
t
.
string
"import_source"
t
.
string
"import_source"
t
.
integer
"commit_count"
,
default:
0
t
.
integer
"commit_count"
,
default:
0
t
.
boolean
"shared_runners_enabled"
,
default:
false
end
end
add_index
"projects"
,
[
"created_at"
,
"id"
],
name:
"index_projects_on_created_at_and_id"
,
using: :btree
add_index
"projects"
,
[
"created_at"
,
"id"
],
name:
"index_projects_on_created_at_and_id"
,
using: :btree
...
@@ -678,7 +656,7 @@ ActiveRecord::Schema.define(version: 20151005075649) do
...
@@ -678,7 +656,7 @@ ActiveRecord::Schema.define(version: 20151005075649) do
create_table
"snippets"
,
force:
true
do
|
t
|
create_table
"snippets"
,
force:
true
do
|
t
|
t
.
string
"title"
t
.
string
"title"
t
.
text
"content"
,
limit:
2147483647
t
.
text
"content"
t
.
integer
"author_id"
,
null:
false
t
.
integer
"author_id"
,
null:
false
t
.
integer
"project_id"
t
.
integer
"project_id"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
...
...
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