def get_post_alter_table_index_foreign_key_sql(self, diff):
        if not isinstance(diff.from_table, Table):
            raise DBALException('Sqlite platform requires for alter table the table'
                                'diff with reference to original table schema')

        sql = []

        if diff.new_name:
            table_name = diff.get_new_name()
        else:
            table_name = diff.get_name(self)

        for index in self._get_indexes_in_altered_table(diff).values():
            if index.is_primary():
                continue

            sql.append(self.get_create_index_sql(index, table_name.get_quoted_name(self)))

        return sql
:param diff: The table diff
dataset/ETHPy150Open sdispater/orator/orator/dbal/platforms/sqlite_platform.py/SQLitePlatform.get_post_alter_table_index_foreign_key_sql