Commit 721d1aec authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'update-terraform-versioning-default' into 'master'

Move Terraform state versioning default to database

See merge request gitlab-org/gitlab!48194
parents a50c7f1d 40d8fdb8
...@@ -35,7 +35,6 @@ module Terraform ...@@ -35,7 +35,6 @@ module Terraform
format: { with: HEX_REGEXP, message: 'only allows hex characters' } format: { with: HEX_REGEXP, message: 'only allows hex characters' }
default_value_for(:uuid, allows_nil: false) { SecureRandom.hex(UUID_LENGTH / 2) } default_value_for(:uuid, allows_nil: false) { SecureRandom.hex(UUID_LENGTH / 2) }
default_value_for(:versioning_enabled, true)
mount_file_store_uploader StateUploader 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 ( ...@@ -16644,7 +16644,7 @@ CREATE TABLE terraform_states (
locked_by_user_id bigint, locked_by_user_id bigint,
uuid character varying(32) NOT NULL, uuid character varying(32) NOT NULL,
name character varying(255), name character varying(255),
versioning_enabled boolean DEFAULT false NOT NULL versioning_enabled boolean DEFAULT true NOT NULL
); );
CREATE SEQUENCE terraform_states_id_seq 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