[Security] Updated ACL generateSql.php

| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#13156]
| License       | MIT
| Doc PR        | N/A


Even though I don't think it will break BC, changing the schema SQL files might possibly cause issues since they change some of the namings (capital ID instead of lowercase, and implicitly using UNSIGNED INTs etc). In that case, the 7c5d0d3 commit could be cherry-picked from this PR.