generated from Greenstand/treetracker-microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port earning/batch PATCH to using streams
- Loading branch information
Showing
23 changed files
with
135 additions
and
259 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* Replace with your SQL commands */ | ||
DROP TABLE earnings.batch; | ||
DROP TYPE status; |
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS batch ( | ||
id uuid NOT NULL PRIMARY KEY, | ||
CREATE TYPE status AS ENUM ('created', 'completed', 'failed'); | ||
|
||
CREATE SCHEMA IF NOT EXISTS earnings; | ||
|
||
CREATE TABLE IF NOT EXISTS earnings.batch ( | ||
id uuid NOT NULL PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
url varchar NOT NULL, | ||
status varchar NOT NULL, | ||
status status NOT NULL, | ||
active boolean NOT NULL | ||
) |
1 change: 0 additions & 1 deletion
1
database/migrations/sqls/20211010192838-createStakeholder-down.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
database/migrations/sqls/20211010192838-createStakeholder-up.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
database/migrations/sqls/20211018163322-createContract-down.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
database/migrations/sqls/20211018163322-createContract-up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Replace with your SQL commands */ | ||
DROP TABLE earnings; | ||
DROP TABLE earnings.earnings; | ||
DROP TYPE earning_status_enum; | ||
DROP TYPE confirmation_method_enum; | ||
DROP TYPE currency_enum; |
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
2 changes: 0 additions & 2 deletions
2
database/migrations/sqls/20211018163620-alterCapture-down.sql
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.