psqlextra/backend/hstore_unique.py
def _rename_hstore_unique(self, old_table_name, new_table_name,
                              old_field, new_field, keys):
        """Renames an existing UNIQUE constraint for the specified
        hstore keys."""

        old_name = self._unique_constraint_name(
            old_table_name, old_field, keys)
        new_name = self._unique_constraint_name(
            new_table_name, new_field, keys)

        sql = self.sql_hstore_unique_rename.format(
            old_name=self.quote_name(old_name),
            new_name=self.quote_name(new_name)
        )
        self.execute(sql)
def _rename_hstore_unique(self, old_table_name, new_table_name,
                              old_field, new_field, keys):
        old_name = self._unique_constraint_name(
            old_table_name, old_field, keys)
        new_name = self._unique_constraint_name(
            new_table_name, new_field, keys)

        sql = self.sql_hstore_unique_rename.format(
            old_name=self.quote_name(old_name),
            new_name=self.quote_name(new_name)
        )
        self.execute(sql)
def _rename_hstore_unique ( self , old_table_name , new_table_name , old_field , new_field , keys ) : old_name = self . _unique_constraint_name ( old_table_name , old_field , keys ) new_name = self . _unique_constraint_name ( new_table_name , new_field , keys ) sql = self . sql_hstore_unique_rename . format ( old_name = self . quote_name ( old_name ) , new_name = self . quote_name ( new_name ) ) self . execute ( sql )
Renames an existing UNIQUE constraint for the specified
        hstore keys.
Renames an existing UNIQUE constraint for the specified hstore keys .