getTable('talk_participants'); if (!$table->hasIndex('tp_ident')) { $table->addUniqueIndex(['room_id', 'user_id', 'session_id'], 'tp_ident'); } if (!$table->hasIndex('tp_room')) { $table->addIndex(['room_id'], 'tp_room'); } if (!$table->hasIndex('tp_last_ping')) { $table->addIndex(['last_ping'], 'tp_last_ping'); } if (!$table->hasIndex('tp_in_call')) { $table->addIndex(['in_call'], 'tp_in_call'); } return $schema; } }