Commit 37dc23ee authored by Arturo Herrero's avatar Arturo Herrero

Remove default column from services table

After removing and ignoring the default column from the
code in a81914c7, we can now drop the database column.
parent 2048ebf1
---
title: Remove default column from services table
merge_request: 39817
author:
type: other
# frozen_string_literal: true
class RemoveDefaultFromServices < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
remove_column :services, :default, :boolean
end
end
def down
with_lock_retries do
add_column :services, :default, :boolean, default: false
end
end
end
c12f3f5b76e1065867682216348dd95c22d605c30ae54615f2596b1d84aad199
\ No newline at end of file
......@@ -15404,7 +15404,6 @@ CREATE TABLE public.services (
tag_push_events boolean DEFAULT true,
note_events boolean DEFAULT true NOT NULL,
category character varying DEFAULT 'common'::character varying NOT NULL,
"default" boolean DEFAULT false,
wiki_page_events boolean DEFAULT true,
pipeline_events boolean DEFAULT false NOT NULL,
confidential_issues_events boolean DEFAULT true NOT NULL,
......
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