Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
754fbff4a0
commit
652dfd8e20
|
|
@ -0,0 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveUsersEmailOptedInColumns < Gitlab::Database::Migration[2.1]
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
remove_column :users, :email_opted_in
|
||||
remove_column :users, :email_opted_in_ip
|
||||
remove_column :users, :email_opted_in_source_id
|
||||
remove_column :users, :email_opted_in_at
|
||||
end
|
||||
|
||||
# This migration removes columns. Disabling rule only for rollback action
|
||||
# rubocop:disable Migration/AddColumnsToWideTables
|
||||
def down
|
||||
add_column :users, :email_opted_in, :boolean
|
||||
add_column :users, :email_opted_in_ip, :string
|
||||
add_column :users, :email_opted_in_source_id, :integer
|
||||
add_column :users, :email_opted_in_at, :datetime_with_timezone
|
||||
end
|
||||
# rubocop:enable Migration/AddColumnsToWideTables
|
||||
end
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveApplicationSettingsMarketingEmailsEnabledColumn < Gitlab::Database::Migration[2.1]
|
||||
def up
|
||||
remove_column :application_settings, :in_product_marketing_emails_enabled
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :application_settings, :in_product_marketing_emails_enabled, :boolean, default: true, null: false
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
ccf25454919c35e8275f48aca973fdd263e57d643640878aa776a7760b38e851
|
||||
|
|
@ -0,0 +1 @@
|
|||
4289e51e278d842ec0a7344256ed5c3de2b0a3355de6437b079b75e3a607b7a8
|
||||
|
|
@ -11663,7 +11663,6 @@ CREATE TABLE application_settings (
|
|||
notes_create_limit integer DEFAULT 300 NOT NULL,
|
||||
notes_create_limit_allowlist text[] DEFAULT '{}'::text[] NOT NULL,
|
||||
kroki_formats jsonb DEFAULT '{}'::jsonb NOT NULL,
|
||||
in_product_marketing_emails_enabled boolean DEFAULT true NOT NULL,
|
||||
asset_proxy_whitelist text,
|
||||
admin_mode boolean DEFAULT false NOT NULL,
|
||||
delayed_project_removal boolean DEFAULT false NOT NULL,
|
||||
|
|
@ -24391,10 +24390,6 @@ CREATE TABLE users (
|
|||
last_activity_on date,
|
||||
notified_of_own_activity boolean DEFAULT false,
|
||||
preferred_language character varying,
|
||||
email_opted_in boolean,
|
||||
email_opted_in_ip character varying,
|
||||
email_opted_in_source_id integer,
|
||||
email_opted_in_at timestamp without time zone,
|
||||
theme_id smallint,
|
||||
accepted_term_id integer,
|
||||
feed_token character varying,
|
||||
|
|
|
|||
Loading…
Reference in New Issue