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
fa8225b5
Commit
fa8225b5
authored
Jul 26, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
507291e0
861959ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
changelogs/unreleased/delete-designs-v2.yml
changelogs/unreleased/delete-designs-v2.yml
+4
-0
db/migrate/20190715140740_add_event_type_to_design_management_designs_versions.rb
...0_add_event_type_to_design_management_designs_versions.rb
+27
-0
db/schema.rb
db/schema.rb
+2
-0
No files found.
changelogs/unreleased/delete-designs-v2.yml
0 → 100644
View file @
fa8225b5
---
title
:
Adds event enum column to DesignsVersions join table
merge_request
:
30745
type
:
added
db/migrate/20190715140740_add_event_type_to_design_management_designs_versions.rb
0 → 100644
View file @
fa8225b5
# frozen_string_literal: true
# This migration sets up a event enum on the DesignsVersions join table
class
AddEventTypeToDesignManagementDesignsVersions
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
# We disable these cops here because adding this column is safe. The table does not
# have any data in it.
# rubocop: disable Migration/AddIndex
# rubocop: disable Migration/AddColumn
def
up
add_column
(
:design_management_designs_versions
,
:event
,
:integer
,
limit:
2
,
null:
false
,
default:
0
)
add_index
(
:design_management_designs_versions
,
:event
)
end
# rubocop: disable Migration/RemoveIndex
def
down
remove_index
(
:design_management_designs_versions
,
:event
)
remove_column
(
:design_management_designs_versions
,
:event
)
end
end
db/schema.rb
View file @
fa8225b5
...
...
@@ -1097,8 +1097,10 @@ ActiveRecord::Schema.define(version: 2019_07_25_012225) do
create_table
"design_management_designs_versions"
,
id:
false
,
force: :cascade
do
|
t
|
t
.
bigint
"design_id"
,
null:
false
t
.
bigint
"version_id"
,
null:
false
t
.
integer
"event"
,
limit:
2
,
default:
0
,
null:
false
t
.
index
[
"design_id"
,
"version_id"
],
name:
"design_management_designs_versions_uniqueness"
,
unique:
true
t
.
index
[
"design_id"
],
name:
"index_design_management_designs_versions_on_design_id"
t
.
index
[
"event"
],
name:
"index_design_management_designs_versions_on_event"
t
.
index
[
"version_id"
],
name:
"index_design_management_designs_versions_on_version_id"
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