[sql gen] Properly create UNIQUE index on non string column. Closes #13728492
Unique was previously detected in a loop triggered only for String columns.
include *.pyinclude */*.pyrecursive-include data *.gif *.png *.ico *.css *.jsrecursive-include i18n *.porecursive-include wdoc *