SELECT vrevisions.for_vrevisions('
    CREATE INDEX objects_l9_the_geom_domain_service_attrs_idx
        ON objects_l9
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_l10_the_geom_domain_service_attrs_idx
        ON objects_l10
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_l12_the_geom_domain_service_attrs_idx
        ON objects_l12
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_l15_the_geom_domain_service_attrs_idx
        ON objects_l15
        USING gist (the_geom, domain_attrs, service_attrs);


    DROP INDEX IF EXISTS objects_l9_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_l9_service_attrs_gist;
    DROP INDEX IF EXISTS objects_l9_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_l10_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_l10_service_attrs_gist;
    DROP INDEX IF EXISTS objects_l10_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_l12_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_l12_service_attrs_gist;
    DROP INDEX IF EXISTS objects_l12_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_l15_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_l15_service_attrs_gist;
    DROP INDEX IF EXISTS objects_l15_the_geom_domain_attrs_index;
');
