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 and make db version consistent
  • Loading branch information
sheridancbio committed Aug 22, 2024
1 parent 6272157 commit eab18ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<frontend.version>v6.0.5</frontend.version>

<!-- THIS SHOULD BE KEPT IN SYNC TO VERSION IN CGDS.SQL -->
<db.version>2.13.1</db.version>
<db.version>3.0.0</db.version>

<!-- Version properties for dependencies that should have same version. -->
<!-- The rest can be set in the dependencyManagement section -->
Expand Down
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 eab18ce

Please sign in to comment.