code: 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
docs: :param diff: The table diff
          :type diff: orator.dbal.table_diff.TableDiff
  
          :rtype: list