-
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
513 additions
and
510 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/rust/db/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,6 @@ | ||
-- 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. | ||
DROP FUNCTION IF EXISTS diesel_manage_updated_at (_tbl regclass); | ||
drop function if exists diesel_manage_updated_at (_tbl regclass); | ||
|
||
DROP FUNCTION IF EXISTS diesel_set_updated_at (); | ||
drop function if exists diesel_set_updated_at (); |
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
16 changes: 8 additions & 8 deletions
16
src/rust/db/migrations/2023-03-16-025536_create_markets/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,15 +1,15 @@ | ||
DROP TABLE recognized_market_events; | ||
drop table recognized_market_events; | ||
|
||
DROP TYPE market_event_type; | ||
drop type market_event_type; | ||
|
||
DROP TABLE recognized_markets; | ||
drop table recognized_markets; | ||
|
||
DROP TRIGGER register_market_trigger ON market_registration_events; | ||
drop trigger register_market_trigger on market_registration_events; | ||
|
||
DROP FUNCTION register_market; | ||
drop function register_market; | ||
|
||
DROP TABLE market_registration_events; | ||
drop table market_registration_events; | ||
|
||
DROP TABLE markets; | ||
drop table markets; | ||
|
||
DROP TABLE coins; | ||
drop table coins; |
144 changes: 72 additions & 72 deletions
144
src/rust/db/migrations/2023-03-16-025536_create_markets/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
23 changes: 11 additions & 12 deletions
23
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,23 +1,22 @@ | ||
-- TODO: need to finish this correctly | ||
drop table fills; | ||
|
||
DROP TABLE fills; | ||
drop trigger handle_taker_event_trigger on taker_events; | ||
|
||
DROP TRIGGER handle_taker_event_trigger ON taker_events; | ||
drop function handle_taker_event; | ||
|
||
DROP FUNCTION handle_taker_event; | ||
drop table taker_events; | ||
|
||
DROP TABLE taker_events; | ||
drop trigger handle_maker_event_trigger on maker_events; | ||
|
||
DROP TRIGGER handle_maker_event_trigger ON maker_events; | ||
drop function handle_maker_event; | ||
|
||
DROP FUNCTION handle_maker_event; | ||
drop table maker_events; | ||
|
||
DROP TABLE maker_events; | ||
drop type maker_event_type; | ||
|
||
DROP TYPE maker_event_type; | ||
drop table orders; | ||
|
||
DROP TABLE orders; | ||
drop type order_state; | ||
|
||
DROP TYPE order_state; | ||
|
||
DROP TYPE side; | ||
drop type side; |
Oops, something went wrong.