alter table for rules