code: def get_create_foreign_key_sql(self, foreign_key, table):
          
          if isinstance(table, Table):
              table = table.get_quoted_name(self)
  
          query = "ALTER TABLE %s ADD %s" % (
              table,
              self.get_foreign_key_declaration_sql(foreign_key),
          )
  
          return query
docs: Returns the SQL to create a new foreign key.
  
          :rtype: sql