Skip to content

Commit

Permalink
Merge pull request #317 from catenax-ng/bugfix/gate-persist-legal-for…
Browse files Browse the repository at this point in the history
…m-optional

Gate Persistence: Legal Form should be optional
  • Loading branch information
nicoprow authored Jul 7, 2023
2 parents 638b952 + 5722104 commit 3752c1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class LegalEntity(
@Column(name = "name_shortname")
var shortName: String?,

@Column(name = "legal_form_id", nullable = false)
var legalForm: String?,
@Column(name = "legal_form_id")
var legalForm: String? = null,

@Column(name = "data_type")
@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Description: Make 'legal_form_id' column optional in the 'legal_entities' table
-- Alter the 'legal_form_id' column to allow NULL values
ALTER TABLE legal_entities ALTER COLUMN legal_form_id DROP NOT NULL;

0 comments on commit 3752c1b

Please sign in to comment.