Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
32f4d02a
Commit
32f4d02a
authored
Feb 24, 2021
by
Emily Ring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added non-null constraint to terraform state name
parent
51f2e31f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
changelogs/unreleased/300302-db-constraint-terraform-name.yml
...gelogs/unreleased/300302-db-constraint-terraform-name.yml
+5
-0
db/migrate/20210224132547_add_null_constraint_to_terraform_state_name.rb
...0224132547_add_null_constraint_to_terraform_state_name.rb
+11
-0
db/schema_migrations/20210224132547
db/schema_migrations/20210224132547
+1
-0
db/structure.sql
db/structure.sql
+1
-1
No files found.
changelogs/unreleased/300302-db-constraint-terraform-name.yml
0 → 100644
View file @
32f4d02a
---
title
:
Added non-null constraint to terraform state name
merge_request
:
54940
author
:
type
:
changed
db/migrate/20210224132547_add_null_constraint_to_terraform_state_name.rb
0 → 100644
View file @
32f4d02a
# frozen_string_literal: true
class
AddNullConstraintToTerraformStateName
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
change_column_null
:terraform_states
,
:name
,
false
end
end
db/schema_migrations/20210224132547
0 → 100644
View file @
32f4d02a
ac0f71b427be1fb583474e352ce9468a1270c6e67fa40f9071751a0485f21160
\ No newline at end of file
db/structure.sql
View file @
32f4d02a
...
...
@@ -17581,7 +17581,7 @@ CREATE TABLE terraform_states (
locked_at timestamp with time zone,
locked_by_user_id bigint,
uuid character varying(32) NOT NULL,
name character varying(255),
name character varying(255)
NOT NULL
,
versioning_enabled boolean DEFAULT true NOT NULL
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment