Skip to content

Commit

Permalink
Reformat sql migrations and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m committed Mar 27, 2024
1 parent 174a929 commit e783af6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auction-server/migrations/20240320162754_init.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE opportunity
creation_time TIMESTAMP NOT NULL,
permission_key BYTEA NOT NULL,
chain_id TEXT NOT NULL,
target_contract BYTEA NOT NULL CHECK (LENGTH(permission_key) = 20),
target_contract BYTEA NOT NULL CHECK (LENGTH(target_contract) = 20),
target_call_value NUMERIC(78, 0) NOT NULL,
target_calldata BYTEA NOT NULL,
sell_tokens JSONB NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion auction-server/migrations/20240326063340_bids.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ CREATE TABLE bid
target_calldata BYTEA NOT NULL,
bid_amount NUMERIC(78, 0) NOT NULL,
status bid_status NOT NULL,
auction_id UUID, -- TODO: should be linked to the auction table in the future
auction_id UUID, -- TODO: should be linked to the auction table in the future
removal_time TIMESTAMP -- TODO: should be removed and read from the auction table in the future
);

0 comments on commit e783af6

Please sign in to comment.