THX

Am Dienstag, den 14.01.2014 um 0:09 schrieb Andreas Fischer:
> > +
> > +	public function analyse() {
> > +		$violations = array();
> > +
> > +		/** @var $tableDiff \Doctrine\DBAL\Schema\TableDiff */
> > +		foreach ($this->schemaDiff->changedTables as $tableDiff) {
> > +
> > +			// validate data on primary and unique keys
> > +			/** @var $changedIndex \Doctrine\DBAL\Schema\Index */
> > +			$changedIndexes = array_merge($tableDiff->addedIndexes, $tableDiff->changedIndexes);
> > +			foreach ($changedIndexes as $changedIndex) {
> > +				$tableName = $tableDiff->name;
> > +				if ($changedIndex->isPrimary() || $changedIndex->isUnique()) {
> > +
> > +					$columns = implode(',', $changedIndex->getColumns());
> > +					$sql = "select * from (select $columns, count(*) as c from $tableName group by $columns) where c > 1";
> 
> Oh hey, there is a SQL error on Jenkins. Changing this might actually fix it. Will do.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/owncloud/core/pull/6751/files#r8844767