BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d931cac7
Unverified
Commit
d931cac7
authored
Sep 07, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update schema.rb from db:migrate and fix invalid index check
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4d23da68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
24 deletions
+25
-24
20170503004427_update_retried_for_ci_build.rb
...ost_migrate/20170503004427_update_retried_for_ci_build.rb
+2
-2
schema.rb
db/schema.rb
+23
-22
No files found.
db/post_migrate/20170503004427_update_retried_for_ci_build.rb
View file @
d931cac7
...
...
@@ -54,14 +54,14 @@ class UpdateRetriedForCiBuild < ActiveRecord::Migration
def
with_temporary_partial_index
if
Gitlab
::
Database
.
postgresql?
unless
index_exists?
(
:ci_builds
,
name: :index_for_ci_builds_retried_migration
)
unless
index_exists?
(
:ci_builds
,
:id
,
name: :index_for_ci_builds_retried_migration
)
execute
'CREATE INDEX CONCURRENTLY index_for_ci_builds_retried_migration ON ci_builds (id) WHERE retried IS NULL;'
end
end
yield
if
Gitlab
::
Database
.
postgresql?
&&
index_exists?
(
:ci_builds
,
name: :index_for_ci_builds_retried_migration
)
if
Gitlab
::
Database
.
postgresql?
&&
index_exists?
(
:ci_builds
,
:id
,
name: :index_for_ci_builds_retried_migration
)
execute
'DROP INDEX CONCURRENTLY index_for_ci_builds_retried_migration'
end
end
...
...
db/schema.rb
View file @
d931cac7
...
...
@@ -32,8 +32,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
text
"description"
,
null:
false
t
.
string
"header_logo"
t
.
string
"logo"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
_with_timezone
"created_at"
,
null:
false
t
.
datetime
_with_timezone
"updated_at"
,
null:
false
t
.
text
"description_html"
t
.
integer
"cached_markdown_version"
end
...
...
@@ -101,6 +101,10 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
text
"help_page_text_html"
t
.
text
"shared_runners_text_html"
t
.
text
"after_sign_up_text_html"
t
.
integer
"rsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"dsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"ecdsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"ed25519_key_restriction"
,
default:
0
,
null:
false
t
.
boolean
"housekeeping_enabled"
,
default:
true
,
null:
false
t
.
boolean
"housekeeping_bitmaps_enabled"
,
default:
true
,
null:
false
t
.
integer
"housekeeping_incremental_repack_period"
,
default:
10
,
null:
false
...
...
@@ -125,14 +129,10 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
boolean
"prometheus_metrics_enabled"
,
default:
false
,
null:
false
t
.
boolean
"help_page_hide_commercial_content"
,
default:
false
t
.
string
"help_page_support_url"
t
.
integer
"performance_bar_allowed_group_id"
t
.
boolean
"password_authentication_enabled"
t
.
boolean
"project_export_enabled"
,
default:
true
,
null:
false
t
.
integer
"performance_bar_allowed_group_id"
t
.
boolean
"hashed_storage_enabled"
,
default:
false
,
null:
false
t
.
integer
"rsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"dsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"ecdsa_key_restriction"
,
default:
0
,
null:
false
t
.
integer
"ed25519_key_restriction"
,
default:
0
,
null:
false
t
.
boolean
"project_export_enabled"
,
default:
true
,
null:
false
end
create_table
"audit_events"
,
force: :cascade
do
|
t
|
...
...
@@ -255,6 +255,7 @@ ActiveRecord::Schema.define(version: 20170831195038) do
add_index
"ci_builds"
,
[
"commit_id"
,
"status"
,
"type"
],
name:
"index_ci_builds_on_commit_id_and_status_and_type"
,
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"
,
[
"id"
],
name:
"index_for_ci_builds_retried_migration"
,
where:
"(retried IS NULL)"
,
using: :btree
,
opclasses:
{
"id)"
=>
"WHERE"
}
add_index
"ci_builds"
,
[
"project_id"
],
name:
"index_ci_builds_on_project_id"
,
using: :btree
add_index
"ci_builds"
,
[
"protected"
],
name:
"index_ci_builds_on_protected"
,
using: :btree
add_index
"ci_builds"
,
[
"runner_id"
],
name:
"index_ci_builds_on_runner_id"
,
using: :btree
...
...
@@ -273,8 +274,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
string
"encrypted_value_iv"
t
.
integer
"group_id"
,
null:
false
t
.
boolean
"protected"
,
default:
false
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
_with_timezone
"created_at"
,
null:
false
t
.
datetime
_with_timezone
"updated_at"
,
null:
false
end
add_index
"ci_group_variables"
,
[
"group_id"
,
"key"
],
name:
"index_ci_group_variables_on_group_id_and_key"
,
unique:
true
,
using: :btree
...
...
@@ -286,8 +287,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
string
"encrypted_value_salt"
t
.
string
"encrypted_value_iv"
t
.
integer
"pipeline_schedule_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
_with_timezone
"created_at"
t
.
datetime
_with_timezone
"updated_at"
end
add_index
"ci_pipeline_schedule_variables"
,
[
"pipeline_schedule_id"
,
"key"
],
name:
"index_ci_pipeline_schedule_variables_on_schedule_id_and_key"
,
unique:
true
,
using: :btree
...
...
@@ -553,8 +554,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
integer
"project_id"
t
.
integer
"author_id"
,
null:
false
t
.
integer
"target_id"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
_with_timezone
"created_at"
,
null:
false
t
.
datetime
_with_timezone
"updated_at"
,
null:
false
t
.
integer
"action"
,
limit:
2
,
null:
false
t
.
string
"target_type"
end
...
...
@@ -592,8 +593,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
add_index
"forked_project_links"
,
[
"forked_to_project_id"
],
name:
"index_forked_project_links_on_forked_to_project_id"
,
unique:
true
,
using: :btree
create_table
"gpg_keys"
,
force: :cascade
do
|
t
|
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
_with_timezone
"created_at"
,
null:
false
t
.
datetime
_with_timezone
"updated_at"
,
null:
false
t
.
integer
"user_id"
t
.
binary
"primary_keyid"
t
.
binary
"fingerprint"
...
...
@@ -605,8 +606,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
add_index
"gpg_keys"
,
[
"user_id"
],
name:
"index_gpg_keys_on_user_id"
,
using: :btree
create_table
"gpg_signatures"
,
force: :cascade
do
|
t
|
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
_with_timezone
"created_at"
,
null:
false
t
.
datetime
_with_timezone
"updated_at"
,
null:
false
t
.
integer
"project_id"
t
.
integer
"gpg_key_id"
t
.
binary
"commit_sha"
...
...
@@ -804,8 +805,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
add_index
"members"
,
[
"user_id"
],
name:
"index_members_on_user_id"
,
using: :btree
create_table
"merge_request_diff_commits"
,
id:
false
,
force: :cascade
do
|
t
|
t
.
datetime
"authored_date"
t
.
datetime
"committed_date"
t
.
datetime
_with_timezone
"authored_date"
t
.
datetime
_with_timezone
"committed_date"
t
.
integer
"merge_request_diff_id"
,
null:
false
t
.
integer
"relative_order"
,
null:
false
t
.
binary
"sha"
,
null:
false
...
...
@@ -1208,6 +1209,7 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
string
"repository_storage"
,
default:
"default"
,
null:
false
t
.
boolean
"request_access_enabled"
,
default:
false
,
null:
false
t
.
boolean
"has_external_wiki"
t
.
string
"ci_config_path"
t
.
boolean
"lfs_enabled"
t
.
text
"description_html"
t
.
boolean
"only_allow_merge_if_all_discussions_are_resolved"
...
...
@@ -1215,9 +1217,8 @@ ActiveRecord::Schema.define(version: 20170831195038) do
t
.
integer
"auto_cancel_pending_pipelines"
,
default:
1
,
null:
false
t
.
string
"import_jid"
t
.
integer
"cached_markdown_version"
t
.
datetime
"last_repository_updated_at"
t
.
string
"ci_config_path"
t
.
text
"delete_error"
t
.
datetime
"last_repository_updated_at"
t
.
integer
"storage_version"
,
limit:
2
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