-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix payout ratio at the moment of loan issuance
- Loading branch information
Leonid Kozarin
committed
Apr 30, 2024
1 parent
c2e7529
commit c754b7b
Showing
22 changed files
with
263 additions
and
169 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.sqlx/query-5208c529f037af3be8532ac3094c728193501939d4edbfcdd28b07487aeb5bb3.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
.sqlx/query-62acfff173f54e2079bf5a2a6a79fd90b5ae05e5d7a90c2ffca09230d2871265.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
.sqlx/query-74d2154a6a4e3a7c81756f6dbbd3ac1d445dbc8c6b82d4f46a496f96439ea55b.json
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
.sqlx/query-f6ec82ea77ac04988817344c222c5deddb93a49097885ec952c08d773aa2a558.json
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
ALTER TABLE Loans ADD COLUMN IF NOT EXISTS payout_ratio real NOT NULL DEFAULT 0.1 | ||
CHECK ( payout_ratio > 0.0 AND payout_ratio < 1.0 ); | ||
ALTER TABLE Loans ALTER COLUMN payout_ratio DROP DEFAULT; |
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
Oops, something went wrong.