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
d7e13579
Commit
d7e13579
authored
Jul 03, 2019
by
Patrick Bajao
Committed by
jboyson1
Aug 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add commit_id to draft_notes table
CE port of
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14520
parent
52b857f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
db/migrate/20190703043358_add_commit_id_to_draft_notes.rb
db/migrate/20190703043358_add_commit_id_to_draft_notes.rb
+11
-0
db/schema.rb
db/schema.rb
+1
-0
spec/db/schema_spec.rb
spec/db/schema_spec.rb
+1
-1
No files found.
db/migrate/20190703043358_add_commit_id_to_draft_notes.rb
0 → 100644
View file @
d7e13579
# frozen_string_literal: true
class
AddCommitIdToDraftNotes
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
add_column
:draft_notes
,
:commit_id
,
:binary
end
end
db/schema.rb
View file @
d7e13579
...
@@ -1136,6 +1136,7 @@ ActiveRecord::Schema.define(version: 2019_07_31_084415) do
...
@@ -1136,6 +1136,7 @@ ActiveRecord::Schema.define(version: 2019_07_31_084415) do
t
.
text
"position"
t
.
text
"position"
t
.
text
"original_position"
t
.
text
"original_position"
t
.
text
"change_position"
t
.
text
"change_position"
t
.
binary
"commit_id"
t
.
index
[
"author_id"
],
name:
"index_draft_notes_on_author_id"
t
.
index
[
"author_id"
],
name:
"index_draft_notes_on_author_id"
t
.
index
[
"discussion_id"
],
name:
"index_draft_notes_on_discussion_id"
t
.
index
[
"discussion_id"
],
name:
"index_draft_notes_on_discussion_id"
t
.
index
[
"merge_request_id"
],
name:
"index_draft_notes_on_merge_request_id"
t
.
index
[
"merge_request_id"
],
name:
"index_draft_notes_on_merge_request_id"
...
...
spec/db/schema_spec.rb
View file @
d7e13579
...
@@ -27,7 +27,7 @@ describe 'Database schema' do
...
@@ -27,7 +27,7 @@ describe 'Database schema' do
cluster_providers_gcp:
%w[gcp_project_id operation_id]
,
cluster_providers_gcp:
%w[gcp_project_id operation_id]
,
deploy_keys_projects:
%w[deploy_key_id]
,
deploy_keys_projects:
%w[deploy_key_id]
,
deployments:
%w[deployable_id environment_id user_id]
,
deployments:
%w[deployable_id environment_id user_id]
,
draft_notes:
%w[discussion_id]
,
draft_notes:
%w[discussion_id
commit_id
]
,
emails:
%w[user_id]
,
emails:
%w[user_id]
,
events:
%w[target_id]
,
events:
%w[target_id]
,
epics:
%w[updated_by_id last_edited_by_id start_date_sourcing_milestone_id due_date_sourcing_milestone_id]
,
epics:
%w[updated_by_id last_edited_by_id start_date_sourcing_milestone_id due_date_sourcing_milestone_id]
,
...
...
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