Skip to content

Commit

Permalink
Added changes to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
zcgandcomp committed Jan 17, 2024
1 parent 1af22a2 commit 24a4cab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/Web-Flow-1.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Empty file.
3 changes: 3 additions & 0 deletions docs/sql/postgresql/migration_1.5.1_1.6.0.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 24a4cab

Please sign in to comment.