Skip to content

Commit

Permalink
pindexer: repair SQL syntax for create type/create domain
Browse files Browse the repository at this point in the history
  • Loading branch information
aubrika committed Jul 25, 2024
1 parent 21b8d7f commit 3ed5902
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/bin/pindexer/src/dex/dex.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
-- that given an `penumbra_asset::asset::Id`, we always know exactly how to filter
-- tables, rather than needing to do a join with another table.

CREATE DOMAIN IF NOT EXISTS Amount AS NUMERIC(39, 0) NOT NULL;

DROP TYPE IF EXISTS Value CASCADE;
DROP DOMAIN IF EXISTS Amount;

CREATE DOMAIN Amount AS NUMERIC(39, 0) NOT NULL;
CREATE TYPE Value AS (
amount Amount,
asset BYTEA NOT NULL
asset BYTEA
);


-- Keeps track of changes to the dex's value circuit breaker.
CREATE TABLE IF NOT EXISTS dex_value_circuit_breaker_change (
-- The asset being moved into or out of the dex.
Expand Down

0 comments on commit 3ed5902

Please sign in to comment.