@OnlyIfDescendedFrom(['alter'])
  def visit_table_flags_definition(self, tokens, table):
    if tokens['table_flags_type'][0] in ('type', 'engine'):
      engine = tokens['table_flags_identifier']
      if engine.lower() != 'innodb':
        self.AddError(tokens, 'ALTER to invalid engine: %s' % engine)
dataset/ETHPy150Open google/mysql-tools/parser_lib/validator.py/AlterChecker.visit_table_flags_definition/original