protected function _process( array $stmts )
	{
		$this->_msg( 'Change order siteid foreign key constraints', 0 ); $this->_status( '' );

		foreach( $stmts as $table => $stmtList )
		{
			foreach ( $stmtList as $constraint => $stmts )
			{
				$this->_msg( sprintf( 'Checking constraint "%1$s": ', $constraint ), 1 );

				if( $this->_schema->tableExists( $table )
					&& $this->_schema->getColumnDetails( $table, 'siteid' )->isNullable() === false )
				{
					$this->_execute( $stmts['column'] );

					if( $this->_schema->constraintExists( $table, $constraint ) === true ) {
						$this->_execute( $stmts['drop'] );
					}

					$this->_status( 'changed' );
				}
				else
				{
					$this->_status( 'OK' );
				}
			}
		}
	}
protected function _process( array $stmts )
	{
		$this->_msg( 'Change order siteid foreign key constraints', 0 ); $this->_status( '' );

		foreach( $stmts as $table => $stmtList )
		{
			foreach ( $stmtList as $constraint => $stmts )
			{
				$this->_msg( sprintf( 'Checking constraint "%1$s": ', $constraint ), 1 );

				if( $this->_schema->tableExists( $table )
					&& $this->_schema->getColumnDetails( $table, 'siteid' )->isNullable() === false )
				{
					$this->_execute( $stmts['column'] );

					if( $this->_schema->constraintExists( $table, $constraint ) === true ) {
						$this->_execute( $stmts['drop'] );
					}

					$this->_status( 'changed' );
				}
				else
				{
					$this->_status( 'OK' );
				}
			}
		}
	}
protected function _process ( array $ stmts ) { $ this -> _msg ( 'Change order siteid foreign key constraints' , 0 ) ; $ this -> _status ( '' ) ; foreach ( $ stmts as $ table => $ stmtList ) { foreach ( $ stmtList as $ constraint => $ stmts ) { $ this -> _msg ( sprintf ( 'Checking constraint "%1$s": ' , $ constraint ) , 1 ) ; if ( $ this -> _schema -> tableExists ( $ table ) && $ this -> _schema -> getColumnDetails ( $ table , 'siteid' ) -> isNullable ( ) === false ) { $ this -> _execute ( $ stmts [ 'column' ] ) ; if ( $ this -> _schema -> constraintExists ( $ table , $ constraint ) === true ) { $ this -> _execute ( $ stmts [ 'drop' ] ) ; } $ this -> _status ( 'changed' ) ; } else { $ this -> _status ( 'OK' ) ; } } } }
Changes CONSTRAINT action ON DELETE for order tables.

@param array $stmts Associative array of tables names and lists of SQL statements to execute
Changes CONSTRAINT action ON DELETE for order tables .