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
6343c1d2
Commit
6343c1d2
authored
Apr 09, 2019
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create tables for dependency proxy feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
56a07e60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
db/schema.rb
db/schema.rb
+21
-0
ee/db/migrate/20190304223216_create_dependency_proxy_blobs.rb
...b/migrate/20190304223216_create_dependency_proxy_blobs.rb
+28
-0
ee/db/migrate/20190304223220_create_dependency_proxy_group_settings.rb
.../20190304223220_create_dependency_proxy_group_settings.rb
+23
-0
No files found.
db/schema.rb
View file @
6343c1d2
...
...
@@ -991,6 +991,25 @@ ActiveRecord::Schema.define(version: 20190404231137) do
t
.
float
"percentage_service_desk_issues"
,
default:
0.0
,
null:
false
end
create_table
"dependency_proxy_blobs"
,
force: :cascade
do
|
t
|
t
.
integer
"group_id"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
bigint
"size"
t
.
integer
"file_store"
t
.
string
"file_name"
,
null:
false
t
.
text
"file"
,
null:
false
t
.
index
[
"group_id"
,
"file_name"
],
name:
"index_dependency_proxy_blobs_on_group_id_and_file_name"
,
using: :btree
end
create_table
"dependency_proxy_group_settings"
,
force: :cascade
do
|
t
|
t
.
integer
"group_id"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
boolean
"enabled"
,
default:
false
,
null:
false
t
.
index
[
"group_id"
],
name:
"index_dependency_proxy_group_settings_on_group_id"
,
using: :btree
end
create_table
"deploy_keys_projects"
,
force: :cascade
do
|
t
|
t
.
integer
"deploy_key_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
...
...
@@ -3479,6 +3498,8 @@ ActiveRecord::Schema.define(version: 20190404231137) do
add_foreign_key
"clusters_kubernetes_namespaces"
,
"clusters"
,
on_delete: :cascade
add_foreign_key
"clusters_kubernetes_namespaces"
,
"projects"
,
on_delete: :nullify
add_foreign_key
"container_repositories"
,
"projects"
add_foreign_key
"dependency_proxy_blobs"
,
"namespaces"
,
column:
"group_id"
,
on_delete: :cascade
add_foreign_key
"dependency_proxy_group_settings"
,
"namespaces"
,
column:
"group_id"
,
on_delete: :cascade
add_foreign_key
"deploy_keys_projects"
,
"projects"
,
name:
"fk_58a901ca7e"
,
on_delete: :cascade
add_foreign_key
"deployments"
,
"projects"
,
name:
"fk_b9a3851b82"
,
on_delete: :cascade
add_foreign_key
"design_management_designs"
,
"issues"
,
on_delete: :cascade
...
...
ee/db/migrate/20190304223216_create_dependency_proxy_blobs.rb
0 → 100644
View file @
6343c1d2
# frozen_string_literal: true
class
CreateDependencyProxyBlobs
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:dependency_proxy_blobs
do
|
t
|
t
.
references
:group
,
references: :namespace
,
column: :group_id
,
index:
false
,
null:
false
t
.
foreign_key
:namespaces
,
column: :group_id
,
on_delete: :cascade
t
.
timestamps_with_timezone
null:
false
t
.
bigint
:size
t
.
integer
:file_store
t
.
string
:file_name
,
null:
false
t
.
text
:file
,
null:
false
t
.
index
[
:group_id
,
:file_name
]
end
end
end
ee/db/migrate/20190304223220_create_dependency_proxy_group_settings.rb
0 → 100644
View file @
6343c1d2
# frozen_string_literal: true
class
CreateDependencyProxyGroupSettings
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:dependency_proxy_group_settings
do
|
t
|
t
.
references
:group
,
references: :namespace
,
column: :group_id
,
index:
true
,
null:
false
t
.
foreign_key
:namespaces
,
column: :group_id
,
on_delete: :cascade
t
.
timestamps_with_timezone
null:
false
t
.
boolean
:enabled
,
default:
false
,
null:
false
end
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