-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EI-397] Separate fungible asset and token indexing (#354)
* Re-index fungible token * Test move script * Schema changes * Comments * on conflict, update * Fix is_fungible_v2 column
- Loading branch information
Showing
19 changed files
with
696 additions
and
587 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
rust/processor/migrations/2024-04-18-173631_fungible_token/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE fungible_asset_metadata | ||
DROP COLUMN supply_v2, | ||
DROP COLUMN maximum_v2; |
12 changes: 12 additions & 0 deletions
12
rust/processor/migrations/2024-04-18-173631_fungible_token/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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE fungible_asset_metadata | ||
ADD COLUMN supply_v2 NUMERIC, | ||
ADD COLUMN maximum_v2 NUMERIC; | ||
|
||
ALTER TABLE current_token_datas_v2 | ||
ALTER COLUMN supply DROP NOT NULL, | ||
ALTER COLUMN decimals DROP NOT NULL; | ||
|
||
ALTER TABLE token_datas_v2 | ||
ALTER COLUMN supply DROP NOT NULL, | ||
ALTER COLUMN decimals DROP NOT NULL; |
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
Oops, something went wrong.