-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concord-server-db: pass secret salt as a base64 value (#694)
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,14 +60,21 @@ | |
</addColumn> | ||
</changeSet> | ||
|
||
<changeSet id="1981031" author="[email protected]"> | ||
<changeSet id="1981031" author="[email protected]" context="!codegen"> | ||
<validCheckSum>ANY</validCheckSum> | ||
<addDefaultValue tableName="SECRETS" columnName="SECRET_SALT" defaultValue="${secretStoreSalt}"/> | ||
<addDefaultValue tableName="SECRETS" columnName="SECRET_SALT" defaultValueComputed="decode('${secretStoreSalt}', 'base64')"/> | ||
</changeSet> | ||
|
||
<changeSet id="1981032" author="[email protected]"> | ||
<changeSet id="1981032" author="[email protected]" context="!codegen"> | ||
<validCheckSum>ANY</validCheckSum> | ||
<addNotNullConstraint tableName="SECRETS" columnName="SECRET_SALT" defaultNullValue="${secretStoreSalt}"/> | ||
<update tableName="SECRETS"> | ||
<column name="SECRET_SALT" valueComputed="decode('${secretStoreSalt}', 'base64')"/> | ||
<where>SECRET_SALT is NULL</where> | ||
</update> | ||
</changeSet> | ||
|
||
<changeSet id="1981033" author="[email protected]"> | ||
<addNotNullConstraint tableName="SECRETS" columnName="SECRET_SALT"/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters