hasTable('ex_speech_to_text')) { $table = $schema->createTable('ex_speech_to_text'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('appid', Types::STRING, [ 'notnull' => true, 'length' => 32, ]); $table->addColumn('name', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('display_name', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('action_handler', Types::STRING, [ 'notnull' => true, 'length' => 410, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['appid', 'name'], 'speech_to_text__idx'); } return $schema; } }