def alter_db_table(self, model, old_db_table, new_db_table):
for field in model._meta.local_fields:<EOL><INDENT>if not isinstance(field, HStoreField):<EOL><INDENT>continue<EOL><DEDENT>for keys in self._iterate_uniqueness_keys(field):<EOL><INDENT>self._rename_hstore_unique(<EOL>old_db_table,<EOL>new_db_table,<EOL>field,<EOL>field,<EOL>keys<EOL>)<EOL><DEDENT><DEDENT>
Ran when the name of a model is changed.