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 22, 2024
1 parent 6272157 commit f5cad33
Show file tree
Hide file tree
Showing 2 changed files with 8 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
7 changes: 6 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,9 @@ 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";

-- TODO: comprehensive conversion script needed here
##version: 3.0.0
DROP TABLE IF EXISTS `drug`;
UPDATE `info` SET `DB_SCHEMA_VERSION`="3.0.0";

0 comments on commit f5cad33

Please sign in to comment.