Skip to content

Commit d6b3914

Browse files
committed
Add primary key to parsed.uranus_trade
1 parent 39ba9e5 commit d6b3914

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

parser/createdb.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,9 @@ CREATE TABLE IF NOT EXISTS parsed.uranus_trade (
210210
is_graduated bool NULL,
211211
volume_usd numeric NULL,
212212
created timestamp NULL,
213-
updated timestamp NULL
213+
updated timestamp NULL,
214+
CONSTRAINT uranus_trade_pkey PRIMARY KEY (tx_hash, event_type)
214215
);
215-
BEGIN;
216-
ALTER TABLE parsed.uranus_trade ADD PRIMARY KEY (tx_hash, event_type);
217-
COMMIT;
218216

219217

220218
-- Adding usd volume for memepads

0 commit comments

Comments
 (0)