Skip to content

Commit

Permalink
Restrict renaming of tables to known ones with upper case in name
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jan 10, 2025
1 parent c136a4d commit bf1b94f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ BEGIN
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_TYPE = 'BASE TABLE'
AND TABLE_NAME IN ('client_x_listColumn', 'ldapGroup', 'ldapServer', 'listColumn', 'workflowCondition')
AND BINARY TABLE_NAME != LOWER(TABLE_NAME);

DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
Expand Down

0 comments on commit bf1b94f

Please sign in to comment.