diff --git a/docs/Web-Flow-1.6.0.md b/docs/Web-Flow-1.6.0.md index b98fad10a..4098b7e82 100644 --- a/docs/Web-Flow-1.6.0.md +++ b/docs/Web-Flow-1.6.0.md @@ -2,4 +2,16 @@ This guide contains instructions for migration from PowerAuth WebFlow version `1.5.x` to version `1.6.0`. -No migration steps nor database changes are required. +## Database Changes + +For convenience you can use liquibase for your database migration. + +For manual changes use SQL scripts: + +- [PostgreSQL script](./sql/postgresql/migration_1.5.1_1.6.0.sql) +- [Oracle script](./sql/oracle/migration_1.5.1_1.6.0.sql) + +### Fix DB Bug for Creating OTP without User ID + +The column `user_id` in table `ns_otp_storage` is nullable now. + diff --git a/docs/sql/oracle/migration_1.5.1_1.6.0.sql b/docs/sql/oracle/migration_1.5.1_1.6.0.sql new file mode 100644 index 000000000..e69de29bb diff --git a/docs/sql/postgresql/migration_1.5.1_1.6.0.sql b/docs/sql/postgresql/migration_1.5.1_1.6.0.sql new file mode 100644 index 000000000..14f1fd51f --- /dev/null +++ b/docs/sql/postgresql/migration_1.5.1_1.6.0.sql @@ -0,0 +1,3 @@ +-- Changeset powerauth-nextstep/1.6.x/20240116-correct-userid-nullable.xml::1::Zdenek Cerny +-- Make user_id column in table ns_otp_storage nullable +ALTER TABLE ns_otp_storage ALTER COLUMN user_id DROP NOT NULL; \ No newline at end of file