Skip to content

Commit

Permalink
Update resources/durablestore_postgres.sql
Browse files Browse the repository at this point in the history
Co-authored-by: Arsene <[email protected]>
Signed-off-by: Mohamad Fadhil <[email protected]>
  • Loading branch information
sdil and Tochemey authored Dec 17, 2024
1 parent 0d98428 commit 1b2001a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/durablestore_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ CREATE TABLE IF NOT EXISTS states_store
shard_number BIGINT NOT NULL,

PRIMARY KEY (persistence_id, version_number)
CONSTRAINT unique_persistence_id UNIQUE (persistence_id)
CREATE INDEX IF NOT EXISTS idx_states_store_persistence_id ON events_store(persistence_id);
CREATE INDEX IF NOT EXISTS idx_states_store_version_number ON events_store(version_number);
);

0 comments on commit 1b2001a

Please sign in to comment.