Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jun 6, 2024
1 parent a57378e commit 0e8519c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin/Cache/install/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ALTER TABLE CachesInDB ADD FULLTEXT(name);

-- Drop the unique index if it exists
DROP PROCEDURE IF EXISTS DropUniqueIndexIfExists;
DELIMITER //

CREATE PROCEDURE DropUniqueIndexIfExists()
BEGIN
DECLARE index_exists INT DEFAULT 0;
Expand All @@ -41,8 +41,7 @@ BEGIN
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
END IF;
END //
DELIMITER ;
END;

-- Call the procedure to drop the index if it exists
CALL DropUniqueIndexIfExists();
Expand Down

0 comments on commit 0e8519c

Please sign in to comment.