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
b2264607
Commit
b2264607
authored
Aug 13, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update packages db schema after db review
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
bc6cabf9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
+15
-14
db/schema.rb
db/schema.rb
+6
-6
ee/db/migrate/20180720120716_create_packages_packages.rb
ee/db/migrate/20180720120716_create_packages_packages.rb
+1
-1
ee/db/migrate/20180720120726_create_packages_package_files.rb
...b/migrate/20180720120726_create_packages_package_files.rb
+5
-5
ee/db/migrate/20180720121404_create_packages_maven_metadata.rb
.../migrate/20180720121404_create_packages_maven_metadata.rb
+3
-2
No files found.
db/schema.rb
View file @
b2264607
...
...
@@ -1921,36 +1921,36 @@ ActiveRecord::Schema.define(version: 20180810155213) do
t
.
string
"nonce"
,
null:
false
end
create_table
"packages_maven_metadata"
,
force: :cascade
do
|
t
|
create_table
"packages_maven_metadata"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
integer
"package_id"
,
null:
false
t
.
string
"path"
,
null:
false
t
.
string
"app_group"
,
null:
false
t
.
string
"app_name"
,
null:
false
t
.
string
"app_version"
t
.
text
"path"
,
null:
false
end
add_index
"packages_maven_metadata"
,
[
"package_id"
],
name:
"index_packages_maven_metadata_on_package_id"
,
using: :btree
add_index
"packages_maven_metadata"
,
[
"path"
],
name:
"index_packages_maven_metadata_on_path"
,
using: :btree
create_table
"packages_package_files"
,
force: :cascade
do
|
t
|
create_table
"packages_package_files"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
integer
"size"
,
limit:
8
t
.
integer
"package_id"
,
null:
false
t
.
integer
"file_type"
t
.
integer
"file_store"
t
.
integer
"size"
t
.
binary
"file_md5"
t
.
binary
"file_sha1"
t
.
string
"file"
t
.
string
"file_name"
,
null:
false
t
.
text
"file"
,
null:
false
end
add_index
"packages_package_files"
,
[
"package_id"
,
"file_name"
],
name:
"index_packages_package_files_on_package_id_and_file_name"
,
using: :btree
add_index
"packages_package_files"
,
[
"package_id"
],
name:
"index_packages_package_files_on_package_id"
,
using: :btree
create_table
"packages_packages"
,
force: :cascade
do
|
t
|
create_table
"packages_packages"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
integer
"project_id"
,
null:
false
...
...
ee/db/migrate/20180720120716_create_packages_packages.rb
View file @
b2264607
...
...
@@ -7,7 +7,7 @@ class CreatePackagesPackages < ActiveRecord::Migration
disable_ddl_transaction!
def
change
create_table
:packages_packages
do
|
t
|
create_table
:packages_packages
,
id: :bigserial
do
|
t
|
t
.
timestamps_with_timezone
null:
false
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
...
...
ee/db/migrate/20180720120726_create_packages_package_files.rb
View file @
b2264607
...
...
@@ -7,19 +7,19 @@ class CreatePackagesPackageFiles < ActiveRecord::Migration
disable_ddl_transaction!
def
up
create_table
:packages_package_files
do
|
t
|
create_table
:packages_package_files
,
id: :bigserial
do
|
t
|
t
.
timestamps_with_timezone
null:
false
t
.
references
:package
,
index:
true
,
null:
false
t
.
bigint
:size
t
.
references
:package
,
index:
true
,
null:
false
t
.
integer
:file_type
t
.
integer
:file_store
t
.
integer
:size
t
.
binary
:file_md5
t
.
binary
:file_sha1
t
.
string
:file
t
.
string
:file_name
,
null:
false
t
.
text
:file
,
null:
false
end
add_concurrent_foreign_key
:packages_package_files
,
:packages_packages
,
...
...
ee/db/migrate/20180720121404_create_packages_maven_metadata.rb
View file @
b2264607
...
...
@@ -7,14 +7,15 @@ class CreatePackagesMavenMetadata < ActiveRecord::Migration
disable_ddl_transaction!
def
up
create_table
:packages_maven_metadata
do
|
t
|
create_table
:packages_maven_metadata
,
id: :bigserial
do
|
t
|
t
.
timestamps_with_timezone
null:
false
t
.
references
:package
,
index:
true
,
null:
false
t
.
string
:path
,
null:
false
t
.
string
:app_group
,
null:
false
t
.
string
:app_name
,
null:
false
t
.
string
:app_version
t
.
text
:path
,
null:
false
end
add_concurrent_foreign_key
:packages_maven_metadata
,
:packages_packages
,
...
...
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