Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/signals-persister' into …
Browse files Browse the repository at this point in the history
…feature/signals-persister
  • Loading branch information
pasqualino.cristaudo committed Oct 18, 2023
2 parents a4b2f53 + 5b469d6 commit a550465
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions config/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
aws.profile=default

1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ management.endpoint.health.show-details=always

# Disable auto cloud formation
cloud.aws.stack.auto=false
aws.profile=default
aws.region=${AWS_REGION:us-east-1}
aws.sqs-endpoint=${AWS_SQS_ENDPOINT:http://localhost:4566/000000000000/}
aws.internal-queue-name=local-internal-signal-hub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ CREATE TABLE IF NOT EXISTS ESERVICE (
UNIQUE (eservice_id, producer_id),
PRIMARY KEY (eservice_id, producer_id)
);
CREATE INDEX ESERVICE_INDEX_ID ON ESERVICE USING hash (eservice_id);
CREATE INDEX ESERVICE_INDEX_PRODUCER_ID ON ESERVICE USING hash (producer_id);

CREATE INDEX IF NOT EXISTS ESERVICE_INDEX_ID ON ESERVICE USING hash (eservice_id);
CREATE INDEX IF NOT EXISTS ESERVICE_INDEX_PRODUCER_ID ON ESERVICE USING hash (producer_id);


CREATE TABLE IF NOT EXISTS CONSUMER_ESERVICE (
Expand All @@ -22,8 +23,8 @@ CREATE TABLE IF NOT EXISTS CONSUMER_ESERVICE (
UNIQUE (eservice_id, consumer_id),
PRIMARY KEY (eservice_id, consumer_id)
);
CREATE INDEX CONSUMER_ESERVICE_INDEX_ID ON CONSUMER_ESERVICE USING hash (eservice_id);
CREATE INDEX ESERVICE_INDEX_CONSUMER_ID ON CONSUMER_ESERVICE USING hash (consumer_id);
CREATE INDEX IF NOT EXISTS CONSUMER_ESERVICE_INDEX_ID ON CONSUMER_ESERVICE USING hash (eservice_id);
CREATE INDEX IF NOT EXISTS ESERVICE_INDEX_CONSUMER_ID ON CONSUMER_ESERVICE USING hash (consumer_id);


CREATE TABLE IF NOT EXISTS SIGNAL (
Expand All @@ -37,8 +38,8 @@ CREATE TABLE IF NOT EXISTS SIGNAL (
tmst_insert TIMESTAMP NOT NULL,
UNIQUE (signal_id, eservice_id)
);
CREATE INDEX SIGNAL_INDEX_SIGNAL_ID ON SIGNAL USING hash (signal_id);
CREATE INDEX SIGNAL_INDEX_ESERVICE_ID ON SIGNAL USING hash (eservice_id);
CREATE INDEX IF NOT EXISTS SIGNAL_INDEX_SIGNAL_ID ON SIGNAL USING hash (signal_id);
CREATE INDEX IF NOT EXISTS SIGNAL_INDEX_ESERVICE_ID ON SIGNAL USING hash (eservice_id);


CREATE TABLE IF NOT EXISTS DEAD_SIGNAL (
Expand Down

0 comments on commit a550465

Please sign in to comment.