Skip to content

Commit

Permalink
fix(gate):fixed the persistence of legalForm
Browse files Browse the repository at this point in the history
  • Loading branch information
SujitMBRDI committed Jul 7, 2023
1 parent deaeedb commit 3fc73f8
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 3fc73f8

Please sign in to comment.