-- MariaDB supports `IF NOT EXISTS` syntax when creating indexes. -- If an index already exists with the same name, it will not be duplicated. -- However, you should still review your pre-existing indexes in advance -- to make sure you do not already have one or more of the same indexes -- defined under a different name. If so, you should omit them -- from what you apply to your MariaDB database. ALTER ONLINE TABLE blc_acct_invite ADD INDEX IF NOT EXISTS IDXalj2fi17mnjua0ny1rqaremdc (account_id) ALTER ONLINE TABLE blc_acct_invite ADD INDEX IF NOT EXISTS IDXe28kfmgr4c9k6jyes49mo63j0 (email) ALTER ONLINE TABLE blc_acct_invite ADD INDEX IF NOT EXISTS IDXgc90woulgs7i089pv6sfh4ptp (email, account_id) ALTER ONLINE TABLE blc_acct_invite ADD INDEX IF NOT EXISTS IDXnqh476w7r82fapkmol7i3h0e0 (id, account_id) ALTER ONLINE TABLE blc_account_member ADD INDEX IF NOT EXISTS IDXhu5dj71lcgw5ngla5927nl2sn (email)