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
87ff4029
Commit
87ff4029
authored
Jul 24, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make package migrations pass [ci skip]
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5ffae25a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
db/migrate/20180720120726_create_packages_package_files.rb
db/migrate/20180720120726_create_packages_package_files.rb
+9
-1
db/migrate/20180720121404_create_packages_maven_metadata.rb
db/migrate/20180720121404_create_packages_maven_metadata.rb
+11
-1
No files found.
db/migrate/20180720120
0
26_create_packages_package_files.rb
→
db/migrate/20180720120
7
26_create_packages_package_files.rb
View file @
87ff4029
class
CreatePackagesPackageFiles
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
create_table
:packages_package_files
do
|
t
|
t
.
references
:package
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:package
,
index:
true
,
null:
false
t
.
string
:file
t
.
integer
:file_type
t
.
integer
:file_store
...
...
@@ -13,5 +17,9 @@ class CreatePackagesPackageFiles < ActiveRecord::Migration
t
.
timestamps
null:
false
end
add_concurrent_foreign_key
:packages_package_files
,
:packages_packages
,
column: :package_id
,
on_delete: :cascade
end
end
db/migrate/20180720121404_create_packages_maven_metadata.rb
View file @
87ff4029
class
CreatePackagesMavenMetadata
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
create_table
:packages_maven_metadata
do
|
t
|
t
.
references
:package
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:package
,
index:
true
,
null:
false
t
.
string
:app_group
,
null:
false
t
.
string
:app_name
,
null:
false
t
.
string
:app_version
,
null:
false
t
.
timestamps
null:
false
end
add_concurrent_foreign_key
:packages_maven_metadata
,
:packages_packages
,
column: :package_id
,
on_delete: :cascade
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