Commit 4d042afe authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-lock-version-not-null' into 'master'

Remove not-null constraint on lock_version column if it exists

Closes #21678

See merge request !6118
parents 9ba9e098 cc3b6f12
class ChangeLockVersionNotNull < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
change_column_null :issues, :lock_version, true
change_column_null :merge_requests, :lock_version, true
end
def down
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160827011312) do ActiveRecord::Schema.define(version: 20160830232601) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment