-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
18cf674
commit e1ae565
Showing
5 changed files
with
57 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Migration from 1.6.x to 1.7.0 | ||
|
||
This guide contains instructions for migration from PowerAuth Server version `1.6.x` to version `1.7.0`. | ||
|
||
## Database Changes | ||
|
||
For convenience you can use liquibase for your database migration. | ||
|
||
For manual changes use SQL scripts: | ||
|
||
- [PostgreSQL script](./sql/postgresql/migration_1.6.0_1.7.0.sql) | ||
- [Oracle script](./sql/oracle/migration_1.6.0_1.7.0.sql) | ||
- [MSSQL script](./sql/mssql/migration_1.6.0_1.7.0.sql) | ||
|
||
### Updated DB Schema for FIDO2 Support | ||
|
||
Following columns have been added to table `pa_activation` for FIDO2 support: | ||
- `external_id` - external identifier of the activation | ||
- `protocol` - protocol enumeration: `powerauth` or `fido2` | ||
|
||
The data type for column `extras` in table `pa_activation` was changed to `TEXT` / `CLOB` to support larger data. |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::1::Roman Strobl | ||
-- Add external_id column | ||
ALTER TABLE pa_activation ADD external_id varchar(255); | ||
GO | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::2::Roman Strobl | ||
-- Add protocol column | ||
ALTER TABLE pa_activation ADD protocol varchar(32) CONSTRAINT DF_pa_activation_protocol DEFAULT 'powerauth'; | ||
GO | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::3::Roman Strobl | ||
ALTER TABLE pa_activation ALTER COLUMN extras varchar (max); | ||
GO |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::1::Roman Strobl | ||
-- Add external_id column | ||
ALTER TABLE pa_activation ADD external_id VARCHAR2(255); | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::2::Roman Strobl | ||
-- Add protocol column | ||
ALTER TABLE pa_activation ADD protocol VARCHAR2(32) DEFAULT 'powerauth'; | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::3::Roman Strobl | ||
ALTER TABLE pa_activation MODIFY extras CLOB; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::1::Roman Strobl | ||
-- Add external_id column | ||
ALTER TABLE pa_activation ADD external_id VARCHAR(255); | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::2::Roman Strobl | ||
-- Add protocol column | ||
ALTER TABLE pa_activation ADD protocol VARCHAR(32) DEFAULT 'powerauth'; | ||
|
||
-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::3::Roman Strobl | ||
ALTER TABLE pa_activation ALTER COLUMN extras TYPE TEXT USING (extras::TEXT); | ||
|