This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Helper functions and procedures for idempotent schema migrations | |
# Provides if (not) exists functionality for creating and dropping indices and columns | |
DELIMITER // | |
DROP FUNCTION IF EXISTS m_index_exists // | |
CREATE FUNCTION m_index_exists( | |
f_table_name varchar(64), | |
f_index_name varchar(64) | |
) | |
RETURNS BOOL |