-
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.
Remove dependency on objects processor (#311)
- Loading branch information
Showing
7 changed files
with
168 additions
and
105 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
rust/processor/migrations/2024-03-07-224504_fungible_asset_metadata_is_token_v2/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,9 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE fungible_asset_metadata | ||
DROP COLUMN IF EXISTS is_token_v2; | ||
ALTER TABLE objects | ||
ADD COLUMN IF NOT EXISTS is_token BOOLEAN, | ||
ADD COLUMN IF NOT EXISTS is_fungible_asset BOOLEAN; | ||
ALTER TABLE current_objects | ||
ADD COLUMN IF NOT EXISTS is_token BOOLEAN, | ||
ADD COLUMN IF NOT EXISTS is_fungible_asset BOOLEAN; |
9 changes: 9 additions & 0 deletions
9
rust/processor/migrations/2024-03-07-224504_fungible_asset_metadata_is_token_v2/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,9 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE fungible_asset_metadata | ||
ADD COLUMN IF NOT EXISTS is_token_v2 BOOLEAN; | ||
ALTER TABLE objects | ||
DROP COLUMN IF EXISTS is_fungible_asset, | ||
DROP COLUMN IF EXISTS is_token; | ||
ALTER TABLE current_objects | ||
DROP COLUMN IF EXISTS is_fungible_asset, | ||
DROP COLUMN IF EXISTS is_token; |
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.