-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(iota-indexer): squash migrations (#1817)
- Loading branch information
1 parent
0844ebb
commit 244d681
Showing
38 changed files
with
345 additions
and
350 deletions.
There are no files selected for viewing
46 changes: 43 additions & 3 deletions
46
crates/iota-indexer/migrations/00000000000000_diesel_initial_setup/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,6 +1,46 @@ | ||
-- This file was automatically created by Diesel to setup helper functions | ||
-- and other internal bookkeeping. This file is safe to edit, any future | ||
-- changes will be added to existing projects as new migrations. | ||
-- This file should undo anything in `up.sql` | ||
|
||
-- Diesel | ||
DROP FUNCTION IF EXISTS diesel_manage_updated_at(_tbl regclass); | ||
DROP FUNCTION IF EXISTS diesel_set_updated_at(); | ||
|
||
-- Events | ||
DROP TABLE IF EXISTS events; | ||
|
||
-- Objects | ||
DROP TABLE IF EXISTS objects; | ||
DROP TABLE IF EXISTS objects_history; | ||
DROP TABLE IF EXISTS objects_snapshot; | ||
|
||
-- Transactions | ||
DROP TABLE IF EXISTS transactions; | ||
|
||
-- Checkpoints | ||
DROP TABLE IF EXISTS checkpoints; | ||
|
||
-- Epochs | ||
DROP TABLE IF EXISTS epochs; | ||
|
||
-- Packages | ||
DROP TABLE IF EXISTS packages; | ||
|
||
-- Tx Recipients | ||
DROP TABLE IF EXISTS tx_recipients; | ||
|
||
-- Tx Senders | ||
DROP TABLE IF EXISTS tx_senders; | ||
|
||
-- Tx Input Objects | ||
DROP TABLE IF EXISTS tx_input_objects; | ||
|
||
-- Tx Changed Objects | ||
DROP TABLE IF EXISTS tx_changed_objects; | ||
|
||
-- Tx calls | ||
DROP TABLE IF EXISTS tx_calls; | ||
|
||
-- Display | ||
DROP TABLE IF EXISTS display; | ||
|
||
DROP FUNCTION IF EXISTS query_cost(TEXT); | ||
DROP PROCEDURE IF EXISTS advance_partition; |
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
crates/iota-indexer/migrations/2023-08-19-044020_events/down.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.