BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ac816d90
Commit
ac816d90
authored
Sep 05, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration
parent
a3f76b76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
20170825154015_resolve_outdated_diff_discussions.rb
...grate/20170825154015_resolve_outdated_diff_discussions.rb
+3
-11
schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20170825154015_resolve_outdated_diff_discussions.rb
View file @
ac816d90
class
CollapseOutdatedDiffComment
s
<
ActiveRecord
::
Migration
class
ResolveOutdatedDiffDiscussion
s
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:projects
,
:resolve_outdated_diff_discussions
,
:boolean
,
default:
false
)
end
def
down
remove_column
(
:projects
,
:resolve_outdated_diff_discussions
)
def
change
add_column
(
:projects
,
:resolve_outdated_diff_discussions
,
:boolean
)
end
end
db/schema.rb
View file @
ac816d90
...
...
@@ -1202,7 +1202,6 @@ ActiveRecord::Schema.define(version: 20170901071411) do
t
.
boolean
"public_builds"
,
default:
true
,
null:
false
t
.
boolean
"last_repository_check_failed"
t
.
datetime
"last_repository_check_at"
t
.
boolean
"resolve_outdated_diff_discussions"
,
default:
false
,
null:
false
t
.
boolean
"container_registry_enabled"
t
.
boolean
"only_allow_merge_if_pipeline_succeeds"
,
default:
false
,
null:
false
t
.
boolean
"has_external_issue_tracker"
...
...
@@ -1220,6 +1219,7 @@ ActiveRecord::Schema.define(version: 20170901071411) do
t
.
string
"ci_config_path"
t
.
text
"delete_error"
t
.
integer
"storage_version"
,
limit:
2
t
.
boolean
"resolve_outdated_diff_discussions"
end
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
...
...
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