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
c918044c
Commit
c918044c
authored
Sep 17, 2019
by
Sara Ahbabou
Committed by
Andreas Brandl
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create package tag table
Tables for metadata and package tags
parent
da5d6a59
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
+47
-0
db/migrate/20190828170945_create_package_metadatum.rb
db/migrate/20190828170945_create_package_metadatum.rb
+14
-0
db/migrate/20190828172831_create_package_tag.rb
db/migrate/20190828172831_create_package_tag.rb
+14
-0
db/schema.rb
db/schema.rb
+14
-0
ee/changelogs/unreleased/add_npm_metadata_tags_table.yml
ee/changelogs/unreleased/add_npm_metadata_tags_table.yml
+5
-0
No files found.
db/migrate/20190828170945_create_package_metadatum.rb
0 → 100644
View file @
c918044c
# frozen_string_literal: true
class
CreatePackageMetadatum
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:packages_package_metadata
do
|
t
|
t
.
references
:package
,
index:
{
unique:
true
},
null:
false
,
foreign_key:
{
to_table: :packages_packages
,
on_delete: :cascade
},
type: :integer
t
.
binary
:metadata
,
null:
false
end
end
end
db/migrate/20190828172831_create_package_tag.rb
0 → 100644
View file @
c918044c
# frozen_string_literal: true .
class
CreatePackageTag
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:packages_package_tags
do
|
t
|
t
.
references
:package
,
index:
true
,
null:
false
,
foreign_key:
{
to_table: :packages_packages
,
on_delete: :cascade
},
type: :integer
t
.
string
:name
,
limit:
255
,
null:
false
end
end
end
db/schema.rb
View file @
c918044c
...
@@ -2498,6 +2498,18 @@ ActiveRecord::Schema.define(version: 2019_09_12_061145) do
...
@@ -2498,6 +2498,18 @@ ActiveRecord::Schema.define(version: 2019_09_12_061145) do
t
.
index
[
"package_id"
,
"file_name"
],
name:
"index_packages_package_files_on_package_id_and_file_name"
t
.
index
[
"package_id"
,
"file_name"
],
name:
"index_packages_package_files_on_package_id_and_file_name"
end
end
create_table
"packages_package_metadata"
,
force: :cascade
do
|
t
|
t
.
integer
"package_id"
,
null:
false
t
.
binary
"metadata"
,
null:
false
t
.
index
[
"package_id"
],
name:
"index_packages_package_metadata_on_package_id"
,
unique:
true
end
create_table
"packages_package_tags"
,
force: :cascade
do
|
t
|
t
.
integer
"package_id"
,
null:
false
t
.
string
"name"
,
limit:
255
,
null:
false
t
.
index
[
"package_id"
],
name:
"index_packages_package_tags_on_package_id"
end
create_table
"packages_packages"
,
force: :cascade
do
|
t
|
create_table
"packages_packages"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
...
@@ -4023,6 +4035,8 @@ ActiveRecord::Schema.define(version: 2019_09_12_061145) do
...
@@ -4023,6 +4035,8 @@ ActiveRecord::Schema.define(version: 2019_09_12_061145) do
add_foreign_key
"operations_feature_flags_clients"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"operations_feature_flags_clients"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"packages_maven_metadata"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_be88aed360"
,
on_delete: :cascade
add_foreign_key
"packages_maven_metadata"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_be88aed360"
,
on_delete: :cascade
add_foreign_key
"packages_package_files"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_86f0f182f8"
,
on_delete: :cascade
add_foreign_key
"packages_package_files"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_86f0f182f8"
,
on_delete: :cascade
add_foreign_key
"packages_package_metadata"
,
"packages_packages"
,
column:
"package_id"
,
on_delete: :cascade
add_foreign_key
"packages_package_tags"
,
"packages_packages"
,
column:
"package_id"
,
on_delete: :cascade
add_foreign_key
"packages_packages"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"packages_packages"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"pages_domain_acme_orders"
,
"pages_domains"
,
on_delete: :cascade
add_foreign_key
"pages_domain_acme_orders"
,
"pages_domains"
,
on_delete: :cascade
add_foreign_key
"pages_domains"
,
"projects"
,
name:
"fk_ea2f6dfc6f"
,
on_delete: :cascade
add_foreign_key
"pages_domains"
,
"projects"
,
name:
"fk_ea2f6dfc6f"
,
on_delete: :cascade
...
...
ee/changelogs/unreleased/add_npm_metadata_tags_table.yml
0 → 100644
View file @
c918044c
---
title
:
Create Metadata/Tags table
merge_request
:
15770
author
:
type
:
added
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