Skip to content

Create new ApplicationSetting for Cloud License

Mark Chao requested to merge 273011-setting into master

What does this MR do?

This MR adds the columns cloud_license_enabled to the ApplicationSettings table. It will be used later to determine whether self hosted instance would enable the Cloud License feature.

Database log

Up
== 20201117054609 AddCloudLicenseEnabledToSettings: reverting =================
-- remove_column(:application_settings, :cloud_license_enabled, :boolean, {:null=>false, :default=>false})
   (0.2ms)  BEGIN
   (2.3ms)  ALTER TABLE "application_settings" DROP COLUMN "cloud_license_enabled"
   -> 0.0029s
== 20201117054609 AddCloudLicenseEnabledToSettings: reverted (0.0065s) ========
Down
== 20201117054609 AddCloudLicenseEnabledToSettings: migrating =================
-- add_column(:application_settings, :cloud_license_enabled, :boolean, {:null=>false, :default=>false})
   (0.1ms)  BEGIN
   (7.4ms)  ALTER TABLE "application_settings" ADD "cloud_license_enabled" boolean DEFAULT FALSE NOT NULL
   -> 0.0084s
== 20201117054609 AddCloudLicenseEnabledToSettings: migrated (0.0085s) ========

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #273011

Edited by Mayra Cabrera

Merge request reports