Move to the indexes dir.
[xtuple] / foundation-database / public / indexes / invchead.sql
1 --CREATE INDEX invchead_invchead_cust_id_idx on invchead using btree (invchead_cust_id);
2 select xt.add_index('invchead', 'invchead_cust_id','invchead_invchead_cust_id_idx', 'btree', 'public');