diff --git a/iam-persistence/src/main/resources/db/migration/h2/V70___totp_mfa.sql b/iam-persistence/src/main/resources/db/migration/h2/V70___totp_mfa.sql index 94f0cc2dd..3496048cd 100644 --- a/iam-persistence/src/main/resources/db/migration/h2/V70___totp_mfa.sql +++ b/iam-persistence/src/main/resources/db/migration/h2/V70___totp_mfa.sql @@ -6,4 +6,4 @@ CREATE TABLE iam_totp_recovery_code (ID BIGINT IDENTITY NOT NULL, code VARCHAR(2 ALTER TABLE iam_totp_mfa ADD CONSTRAINT FK_iam_totp_mfa_account_id FOREIGN KEY (ACCOUNT_ID) REFERENCES iam_account (ID); -ALTER TABLE iam_totp_recovery_code ADD CONSTRAINT FK_iam_totp_recovery_code_totp_mfa_id FOREIGN KEY (totp_mfa_id) REFERENCES iam_totp_mfa (ID); +ALTER TABLE iam_totp_recovery_code ADD CONSTRAINT FK_iam_totp_recovery_code_totp_mfa_id FOREIGN KEY (totp_mfa_id) REFERENCES iam_totp_mfa (ID); \ No newline at end of file diff --git a/iam-persistence/src/main/resources/db/migration/h2/V71___add_pre_authenticated_authority.sql b/iam-persistence/src/main/resources/db/migration/h2/V71___add_pre_authenticated_authority.sql index efb0eed8b..54a86d5cd 100644 --- a/iam-persistence/src/main/resources/db/migration/h2/V71___add_pre_authenticated_authority.sql +++ b/iam-persistence/src/main/resources/db/migration/h2/V71___add_pre_authenticated_authority.sql @@ -1,2 +1,2 @@ INSERT INTO iam_authority(AUTH) VALUES -('ROLE_PRE_AUTHENTICATED'); +('ROLE_PRE_AUTHENTICATED'); \ No newline at end of file diff --git a/iam-persistence/src/main/resources/db/migration/mysql/V70___totp_mfa.sql b/iam-persistence/src/main/resources/db/migration/mysql/V70___totp_mfa.sql index cad0a9082..fdaa23f94 100644 --- a/iam-persistence/src/main/resources/db/migration/mysql/V70___totp_mfa.sql +++ b/iam-persistence/src/main/resources/db/migration/mysql/V70___totp_mfa.sql @@ -6,4 +6,4 @@ CREATE TABLE iam_totp_recovery_code (ID BIGINT AUTO_INCREMENT NOT NULL, code VAR ALTER TABLE iam_totp_mfa ADD CONSTRAINT FK_iam_totp_mfa_account_id FOREIGN KEY (ACCOUNT_ID) REFERENCES iam_account (ID); -ALTER TABLE iam_totp_recovery_code ADD CONSTRAINT FK_iam_totp_recovery_code_totp_mfa_id FOREIGN KEY (totp_mfa_id) REFERENCES iam_totp_mfa (ID); +ALTER TABLE iam_totp_recovery_code ADD CONSTRAINT FK_iam_totp_recovery_code_totp_mfa_id FOREIGN KEY (totp_mfa_id) REFERENCES iam_totp_mfa (ID); \ No newline at end of file