[#8489] Add compound index to modTemplateVarResource

[ReUp][#8489] add a new index in the site_tmplvar_contentvalues table

(cherry picked from commit d90c233abd2f10e279cc613d33e2e38f9bf4a475)