psqlextra/backend/hstore_required.py
def _rename_hstore_required(self, old_table_name, new_table_name,
                                old_field, new_field, key):
        """Renames an existing REQUIRED CONSTRAINT for the specified
        hstore key."""

        old_name = self._required_constraint_name(
            old_table_name, old_field, key)
        new_name = self._required_constraint_name(
            new_table_name, new_field, key)

        sql = self.sql_hstore_required_rename.format(
            table=self.quote_name(new_table_name),
            old_name=self.quote_name(old_name),
            new_name=self.quote_name(new_name)
        )
        self.execute(sql)
def _rename_hstore_required(self, old_table_name, new_table_name,
                                old_field, new_field, key):
        old_name = self._required_constraint_name(
            old_table_name, old_field, key)
        new_name = self._required_constraint_name(
            new_table_name, new_field, key)

        sql = self.sql_hstore_required_rename.format(
            table=self.quote_name(new_table_name),
            old_name=self.quote_name(old_name),
            new_name=self.quote_name(new_name)
        )
        self.execute(sql)
def _rename_hstore_required ( self , old_table_name , new_table_name , old_field , new_field , key ) : old_name = self . _required_constraint_name ( old_table_name , old_field , key ) new_name = self . _required_constraint_name ( new_table_name , new_field , key ) sql = self . sql_hstore_required_rename . format ( table = self . quote_name ( new_table_name ) , old_name = self . quote_name ( old_name ) , new_name = self . quote_name ( new_name ) ) self . execute ( sql )
Renames an existing REQUIRED CONSTRAINT for the specified
        hstore key.
Renames an existing REQUIRED CONSTRAINT for the specified hstore key .