Skip to content

Commit

Permalink
update sql migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
sdil committed Dec 17, 2024
1 parent 1b2001a commit 2df5257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/durablestore_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ CREATE TABLE IF NOT EXISTS states_store
shard_number BIGINT NOT NULL,

PRIMARY KEY (persistence_id, version_number)
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);
);

CREATE INDEX IF NOT EXISTS idx_states_store_persistence_id ON states_store(persistence_id);
CREATE INDEX IF NOT EXISTS idx_states_store_version_number ON states_store(version_number);

0 comments on commit 2df5257

Please sign in to comment.