Commit 40d8fdb8 authored by Tiger's avatar Tiger

Move Terraform state versioning default to database

parent 0072a1e3
......@@ -35,7 +35,6 @@ module Terraform
format: { with: HEX_REGEXP, message: 'only allows hex characters' }
default_value_for(:uuid, allows_nil: false) { SecureRandom.hex(UUID_LENGTH / 2) }
default_value_for(:versioning_enabled, true)
mount_file_store_uploader StateUploader
......
---
title: Move Terraform state versioning default to database
merge_request: 48194
author:
type: other
# frozen_string_literal: true
class ChangeTerraformVersioningEnabledDefault < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
change_column_default :terraform_states, :versioning_enabled, from: false, to: true
end
end
33970a1295b84040c82034041c99f13578352844c9c6cb092b5cc35913576a7e
\ No newline at end of file
......@@ -16644,7 +16644,7 @@ CREATE TABLE terraform_states (
locked_by_user_id bigint,
uuid character varying(32) NOT NULL,
name character varying(255),
versioning_enabled boolean DEFAULT false NOT NULL
versioning_enabled boolean DEFAULT true NOT NULL
);
CREATE SEQUENCE terraform_states_id_seq
......
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