getTable('circles_mount'); if (!$table->hasColumn('remote')) { $table->addColumn( 'remote', 'string', [ 'length' => 255, 'notnull' => false, 'default' => '', ] ); } if (!$table->hasColumn('remote_id')) { $table->addColumn( 'remote_id', 'integer', [ 'length' => 20, 'unsigned' => true, 'notnull' => true, 'default' => 0, ] ); } if (!$table->hasIndex('m_sid_rmt_rid')) { $table->addIndex(['circle_id', 'remote', 'remote_id'], 'm_sid_rmt_rid'); } } catch (SchemaException $e) { $this->logger->warning('Could not find circles_mount', ['exception' => $e]); return null; } return $schema; } }