Right now an insert into meta.table creates the "normal" pk/fk indexes that are automatically created in a create table statement. Stop doing this, and instead make a meta.index view that one needs to insert into to create those (or any other) indexes. This way we can track and version control indexes like everything else.