-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDP-1380] Allow disbursement.verification_field to be empty (#456)
### What Allow disbursement.verification_field to be empty ### Why Address https://stellarorg.atlassian.net/browse/SDP-1380
- Loading branch information
1 parent
e824a74
commit bc1384f
Showing
6 changed files
with
94 additions
and
19 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
db/migrations/sdp-migrations/2024-11-01.1-disbursement-make-verification-field-nullable.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- This migration drops the verification_field NOT NULL constraint from the disbursements table. | ||
|
||
-- +migrate Up | ||
ALTER TABLE disbursements | ||
ALTER COLUMN verification_field DROP NOT NULL; | ||
|
||
-- +migrate Down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package utils | ||
|
||
import "database/sql" | ||
|
||
func SQLNullString(s string) sql.NullString { | ||
return sql.NullString{ | ||
String: s, | ||
Valid: s != "", | ||
} | ||
} |