Skip to content

Commit cd0ffc7

Browse files
committed
merge schema 4 & 4.1 to prevent data loss in auth_user table
1 parent 4b6bb53 commit cd0ffc7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/resources/db/migration/common/V4.1__Add_deactivated_at_column_to_auth_user.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/resources/db/migration/common/V4__Remove_global_soft_deletes_and_redundant_columns.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DROP INDEX auth_user__email__unqiue_idx;
2-
ALTER TABLE auth_user DROP COLUMN deleted_at;
2+
ALTER TABLE auth_user RENAME COLUMN deleted_at TO deactivated_at;
33
CREATE UNIQUE INDEX auth_user__email__unqiue_idx ON auth_user (email);
44

55
DROP INDEX refresh_token__owner_id__idx;

0 commit comments

Comments
 (0)