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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
77f99c5b
Commit
77f99c5b
authored
Aug 31, 2016
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'lock_fix' into 'master'"
This reverts commit
d836a359
.
parent
82e4552e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
18 deletions
+2
-18
db/migrate/20160827011312_ensure_lock_version_has_no_default.rb
...rate/20160827011312_ensure_lock_version_has_no_default.rb
+0
-16
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20160827011312_ensure_lock_version_has_no_default.rb
deleted
100644 → 0
View file @
82e4552e
class
EnsureLockVersionHasNoDefault
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
change_column_default
:issues
,
:lock_version
,
nil
change_column_default
:merge_requests
,
:lock_version
,
nil
execute
(
'UPDATE issues SET lock_version = 1 WHERE lock_version = 0'
)
execute
(
'UPDATE merge_requests SET lock_version = 1 WHERE lock_version = 0'
)
end
def
down
end
end
db/schema.rb
View file @
77f99c5b
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201608
27011312
)
do
ActiveRecord
::
Schema
.
define
(
version:
201608
19221833
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1154,4 +1154,4 @@ ActiveRecord::Schema.define(version: 20160827011312) do
add_foreign_key
"protected_branch_merge_access_levels"
,
"protected_branches"
add_foreign_key
"protected_branch_push_access_levels"
,
"protected_branches"
add_foreign_key
"u2f_registrations"
,
"users"
end
end
\ No newline at end of file
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