Skip to content

Commit

Permalink
restore password in CustomRedisCachingProvider
Browse files Browse the repository at this point in the history
put placeholder in migration.sql
  • Loading branch information
sheridancbio committed Aug 21, 2024
1 parent 6272157 commit 9bbb691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public RedissonClient getRedissonClient() {
config.useMasterSlaveServers()
.setMasterAddress(leaderAddress)
.addSlaveAddress(followerAddress)
.setDatabase(database);
//.setPassword(password);
.setDatabase(database)
.setPassword(password);

RedissonClient redissonClient = Redisson.create(config);
LOG.debug("Created Redisson Client: " + redissonClient);
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/db-scripts/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1027,4 +1027,8 @@ ALTER TABLE `clinical_event_data` MODIFY COLUMN `VALUE` varchar(3000) NOT NULL;
CREATE INDEX idx_clinical_event_key ON clinical_event_data (`KEY`);
CREATE INDEX idx_clinical_event_value ON clinical_event_data (`VALUE`);
CREATE INDEX idx_sample_stable_id ON sample (`STABLE_ID`);
UPDATE `info` SET `DB_SCHEMA_VERSION`="2.13.1";
UPDATE `info` SET `DB_SCHEMA_VERSION`="2.13.1";

##version: 3.0.0
-- TODO: comprehensive conversion script needed here
UPDATE `info` SET `DB_SCHEMA_VERSION`="3.0.0";

0 comments on commit 9bbb691

Please sign in to comment.