Skip to content

Commit 3e69b5b

Browse files
author
Nicole Schmidt
committed
Fix MySQL syntax error
1 parent 93e9b9a commit 3e69b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade42010to42100.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void performKeyPairMigration(Connection conn) throws SQLException {
9191

9292
preparedStatement.executeUpdate();
9393
}
94-
pstmt = conn.prepareStatement("ALTER TABLE `cloud`.`user` DROP COLUMN IF EXISTS api_key, DROP COLUMN IF EXISTS secret_key;");
94+
pstmt = conn.prepareStatement("ALTER TABLE `cloud`.`user` DROP COLUMN api_key, DROP COLUMN secret_key;");
9595
pstmt.executeUpdate();
9696
logger.info("Successfully performed keypair migration.");
9797
} catch (SQLException ex) {

0 commit comments

Comments
 (0)