protected function _process( array $stmts )
	{
		$this->_msg( 'Changing PRIMARY KEYS for locale', 0 ); $this->_status( '' );

		$search = '
			SELECT COUNT(INDEX_NAME) "counter" FROM
			INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = DATABASE()
			AND TABLE_NAME = \'%1$s\' AND INDEX_NAME = \'PRIMARY\'
			AND COLUMN_NAME IN(\'id\', \'siteid\')
		';

		foreach( $stmts as $table => $stmt )
		{
			$this->_msg( sprintf( 'Checking table "%1$s" for PRIMARY": ', $table ), 1 );
			$counter = $this->_getValue( sprintf( $search, $table ), 'counter' );

			if( $counter == 2 )
			{
				$this->_execute( $stmt );
				$this->_status( 'changed' );
			}
			else
			{
				$this->_status( 'OK' );
			}
		}
	}
protected function _process( array $stmts )
	{
		$this->_msg( 'Changing PRIMARY KEYS for locale', 0 ); $this->_status( '' );

		$search = '
			SELECT COUNT(INDEX_NAME) "counter" FROM
			INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = DATABASE()
			AND TABLE_NAME = \'%1$s\' AND INDEX_NAME = \'PRIMARY\'
			AND COLUMN_NAME IN(\'id\', \'siteid\')
		';

		foreach( $stmts as $table => $stmt )
		{
			$this->_msg( sprintf( 'Checking table "%1$s" for PRIMARY": ', $table ), 1 );
			$counter = $this->_getValue( sprintf( $search, $table ), 'counter' );

			if( $counter == 2 )
			{
				$this->_execute( $stmt );
				$this->_status( 'changed' );
			}
			else
			{
				$this->_status( 'OK' );
			}
		}
	}
protected function _process ( array $ stmts ) { $ this -> _msg ( 'Changing PRIMARY KEYS for locale' , 0 ) ; $ this -> _status ( '' ) ; $ search = '
			SELECT COUNT(INDEX_NAME) "counter" FROM
			INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA = DATABASE()
			AND TABLE_NAME = \'%1$s\' AND INDEX_NAME = \'PRIMARY\'
			AND COLUMN_NAME IN(\'id\', \'siteid\')
		' ; foreach ( $ stmts as $ table => $ stmt ) { $ this -> _msg ( sprintf ( 'Checking table "%1$s" for PRIMARY": ' , $ table ) , 1 ) ; $ counter = $ this -> _getValue ( sprintf ( $ search , $ table ) , 'counter' ) ; if ( $ counter == 2 ) { $ this -> _execute ( $ stmt ) ; $ this -> _status ( 'changed' ) ; } else { $ this -> _status ( 'OK' ) ; } } }
Change critical PRIMARY KEY-constellation in locale tables.

@param array $stmts List of SQL statements to execute for adding columns
Change critical PRIMARY KEY - constellation in locale tables .