-
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
1 changed file
with
30 additions
and
9 deletions.
There are no files selected for viewing
39 changes: 30 additions & 9 deletions
39
src/rust/db/migrations/2023-03-16-080047_order_events/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,22 +1,43 @@ | ||
-- TODO: need to finish this correctly | ||
drop table fills; | ||
drop table place_swap_order_events; | ||
|
||
drop trigger handle_taker_event_trigger on taker_events; | ||
drop trigger handle_place_market_order_event_trigger on place_market_order_events; | ||
|
||
drop function handle_taker_event; | ||
drop function handle_place_market_order_event; | ||
|
||
drop table taker_events; | ||
drop table place_market_order_events; | ||
|
||
drop trigger handle_maker_event_trigger on maker_events; | ||
drop trigger handle_place_limit_order_event_trigger on place_limit_order_events; | ||
|
||
drop function handle_maker_event; | ||
drop function handle_place_limit_order_event; | ||
|
||
drop table maker_events; | ||
drop table place_limit_order_events; | ||
|
||
drop type maker_event_type; | ||
drop trigger handle_fill_event_trigger on fill_events; | ||
|
||
drop function handle_fill_event; | ||
|
||
drop table fill_events; | ||
|
||
drop trigger handle_change_order_size_event_trigger on change_order_size_events; | ||
|
||
drop function handle_change_order_size_event; | ||
|
||
drop table change_order_size_events; | ||
|
||
drop trigger handle_cancel_order_event_trigger on cancel_order_events; | ||
|
||
drop function handle_cancel_order_event; | ||
|
||
drop table cancel_order_events; | ||
|
||
drop table orders; | ||
|
||
drop type cancel_reason; | ||
|
||
drop type self_match_behavior; | ||
|
||
drop type restriction; | ||
|
||
drop type order_state; | ||
|
||
drop type side; |