Skip to content

Commit 6e513d5

Browse files
Marta Mediobrianchandotcom
authored andcommitted
LPS-127514 Standardize data type
1 parent 6b6e193 commit 6e513d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/dxp/apps/multi-factor-authentication/multi-factor-authentication-fido2-credential-service/src/main/java/com/liferay/multi/factor/authentication/fido2/credential/internal/upgrade/v2_0_0/MFAFIDO2CredentialUpgradeProcess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected void doUpgrade() throws Exception {
3232
if (hasColumn("MFAFIDO2CredentialEntry", "credentialKey")) {
3333
alter(
3434
MFAFIDO2CredentialEntryTable.class,
35-
new AlterColumnType("credentialKey", "LONGTEXT null"));
35+
new AlterColumnType("credentialKey", "TEXT null"));
3636
}
3737

3838
if (!hasColumn("MFAFIDO2CredentialEntry", "credentialKeyHash")) {

modules/dxp/apps/multi-factor-authentication/multi-factor-authentication-fido2-credential-service/src/main/java/com/liferay/multi/factor/authentication/fido2/credential/internal/upgrade/v2_0_0/util/MFAFIDO2CredentialEntryTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class MFAFIDO2CredentialEntryTable {
7272
};
7373

7474
public static final String TABLE_SQL_CREATE =
75-
"create table MFAFIDO2CredentialEntry (mfaFIDO2CredentialEntryId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,credentialKey LONGTEXT null,credentialKeyHash LONG,credentialType INTEGER,failedAttempts INTEGER,publicKeyCOSE VARCHAR(128) null,signatureCount LONG)";
75+
"create table MFAFIDO2CredentialEntry (mfaFIDO2CredentialEntryId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,credentialKey TEXT null,credentialKeyHash LONG,credentialType INTEGER,failedAttempts INTEGER,publicKeyCOSE VARCHAR(128) null,signatureCount LONG)";
7676

7777
public static final String TABLE_SQL_DROP =
7878
"drop table MFAFIDO2CredentialEntry";

0 commit comments

Comments
 (0)