-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
27 additions
and
13 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
9 changes: 7 additions & 2 deletions
9
src/rust/dbv2/migrations/2023-10-02-022942_market_account_handles/down.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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
-- Table drop generated via diesel migration generate --diff-schema | ||
-- View drop generated manually | ||
-- Table drop generated via diesel migration generate --diff-schema. | ||
-- View drops generated manually. | ||
DROP TABLE IF EXISTS "market_account_handles"; | ||
DROP VIEW api.market_account_handles; | ||
|
||
-- Old view drops that should've been in prior migrations. | ||
DROP VIEW api.change_order_size_events; | ||
DROP VIEW api.place_market_order_events; | ||
DROP VIEW api.place_swap_order_events; |
16 changes: 13 additions & 3 deletions
16
src/rust/dbv2/migrations/2023-10-02-022942_market_account_handles/up.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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
-- Table generated via diesel migration generate --diff-schema | ||
-- View generated manually | ||
-- Table generated via diesel migration generate --diff-schema. | ||
-- Views generated manually. | ||
CREATE TABLE "market_account_handles"( | ||
"user" VARCHAR(70) NOT NULL PRIMARY KEY, | ||
"handle" VARCHAR(70) NOT NULL | ||
); | ||
|
||
CREATE VIEW api.market_account_handles AS SELECT * FROM market_account_handles; | ||
GRANT SELECT ON api.market_account_handles TO web_anon; | ||
GRANT SELECT ON api.market_account_handles TO web_anon; | ||
|
||
-- Missing views that should've been in prior migrations | ||
CREATE VIEW api.change_order_size_events AS SELECT * FROM change_order_size_events; | ||
GRANT SELECT ON api.change_order_size_events TO web_anon; | ||
|
||
CREATE VIEW api.place_market_order_events AS SELECT * FROM place_market_order_events; | ||
GRANT SELECT ON api.place_market_order_events TO web_anon; | ||
|
||
CREATE VIEW api.place_swap_order_events AS SELECT * FROM place_swap_order_events; | ||
GRANT SELECT ON api.place_swap_order_events TO web_anon; |
4 changes: 2 additions & 2 deletions
4
src/rust/dbv2/migrations/2023-10-02-062617_balance_updates_by_handle/down.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- Table drop generated via diesel migration generate --diff-schema | ||
-- View drops generated manually | ||
-- Table drop generated via diesel migration generate --diff-schema. | ||
-- View drops generated manually. | ||
DROP TABLE IF EXISTS "balance_updates_by_handle"; | ||
DROP VIEW api.balance_updates_by_handle; | ||
DROP VIEW api.balance_updates; |
4 changes: 2 additions & 2 deletions
4
src/rust/dbv2/migrations/2023-10-02-062617_balance_updates_by_handle/up.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
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
Submodule aptos-indexer-processors
updated
1 files
+18 −25 | rust/processor/src/processors/econia_processor.rs |