mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 02:27:57 +00:00
The exclusion list was a subquery against `$GenConfig.DBName`.sys_tables, so it named the schema by hand. Generating from a schema that is not the one holding sys_tables made the whole query fail, and because the subquery read the table directly it also counted soft-deleted entries: deleting a generator entry never handed its table back. Read the registrations through the model on this connection instead. An empty list skips the clause - NOT IN (NULL) is unknown for every row, which would leave a fresh install with nothing to generate from.