diff --git a/resources/durablestore_postgres.sql b/resources/durablestore_postgres.sql index 83eefa9..d7da67b 100644 --- a/resources/durablestore_postgres.sql +++ b/resources/durablestore_postgres.sql @@ -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);