Skip to content

Commit

Permalink
fix for non unique index
Browse files Browse the repository at this point in the history
  • Loading branch information
rchaing-figure committed Feb 2, 2023
1 parent f60c19e commit 4870385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion migrations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ flyway {
driver = "org.postgresql.Driver"
user = "postgres"
password = "password1"
schemas = mutableListOf("aggregatedb").toTypedArray()
schemas = mutableListOf("public").toTypedArray()
locations = mutableListOf("filesystem:sql").toTypedArray()
}
4 changes: 2 additions & 2 deletions migrations/sql/V1__CREATE_TABLES.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ CREATE TABLE IF NOT EXISTS ATTRIBUTES(
owner TEXT
);

CREATE UNIQUE INDEX coin_transfer_block_height ON COIN_TRANSFER (block_height);
CREATE UNIQUE INDEX fees_block_height ON FEES (block_height);
CREATE INDEX coin_transfer_block_height ON COIN_TRANSFER (block_height);
CREATE INDEX fees_block_height ON FEES (block_height);

2 changes: 1 addition & 1 deletion src/main/resources/local.env.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASS=password1
DB_NAME=aggregatordb
DB_NAME=postgresdb
DB_SCHEMA=aggregator
CACHE_URI=http://localhost:8080
CACHE_CHECKPOINT=Aggregator-Checkpoint
Expand Down

0 comments on commit 4870385

Please sign in to comment.