Skip to content

Commit

Permalink
Fix #1368: Modify datatype of pa_activation.extras (#1371)
Browse files Browse the repository at this point in the history
* Fix #1368: Modify datatype of pa_activation.extras
  • Loading branch information
jandusil authored Mar 5, 2024
1 parent f7beef5 commit f6248d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/PowerAuth-Server-1.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ 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.
The size of column `extras` in table `pa_activation` was increased to `4000` from `255` to support larger data.

### New Database Table for Application Configuration

Expand Down
2 changes: 1 addition & 1 deletion docs/sql/mssql/migration_1.6.0_1.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ALTER TABLE pa_activation ADD protocol varchar(32) CONSTRAINT DF_pa_activation_p
GO

-- Changeset powerauth-java-server/1.7.x/20240115-add-columns-fido2::3::Roman Strobl
ALTER TABLE pa_activation ALTER COLUMN extras varchar (max);
ALTER TABLE pa_activation ALTER COLUMN extras varchar (4000);
GO

-- Changeset powerauth-java-server/1.7.x/20240212-application-config.xml::1::Roman Strobl
Expand Down
2 changes: 1 addition & 1 deletion docs/sql/oracle/migration_1.6.0_1.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ALTER TABLE pa_activation ADD external_id VARCHAR2(255);
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;
ALTER TABLE pa_activation MODIFY extras VARCHAR2(4000);

-- Changeset powerauth-java-server/1.7.x/20240212-application-config.xml::1::Roman Strobl
-- Create a new table pa_application_config
Expand Down
2 changes: 1 addition & 1 deletion docs/sql/postgresql/migration_1.6.0_1.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ALTER TABLE pa_activation ADD external_id VARCHAR(255);
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);
ALTER TABLE pa_activation ALTER COLUMN extras TYPE VARCHAR(4000) USING (extras::VARCHAR(4000));

-- Changeset powerauth-java-server/1.7.x/20240212-application-config.xml::1::Roman Strobl
-- Create a new table pa_application_config
Expand Down

0 comments on commit f6248d7

Please sign in to comment.