protected function _process( array $stmts )
	{
		$table = 'mshop_plugin';
		$constraint = 'fk_msplu_typeid';

		$this->_msg( 'Adding constraint for table mshop_plugin', 0 ); $this->_status( '' );

		$this->_msg( sprintf( 'Checking constraint "%1$s": ', $constraint ), 1 );

		if( $this->_schema->tableExists( $table ) === true
			&& $this->_schema->columnExists( $table, 'typeid' )
			&& $this->_schema->constraintExists( $table, $constraint ) === false )
		{
			$this->_execute( $stmts[ $constraint ] );
			$this->_status( 'added' );
		}
		else
		{
			$this->_status( 'OK' );
		}
	}
protected function _process( array $stmts )
	{
		$table = 'mshop_plugin';
		$constraint = 'fk_msplu_typeid';

		$this->_msg( 'Adding constraint for table mshop_plugin', 0 ); $this->_status( '' );

		$this->_msg( sprintf( 'Checking constraint "%1$s": ', $constraint ), 1 );

		if( $this->_schema->tableExists( $table ) === true
			&& $this->_schema->columnExists( $table, 'typeid' )
			&& $this->_schema->constraintExists( $table, $constraint ) === false )
		{
			$this->_execute( $stmts[ $constraint ] );
			$this->_status( 'added' );
		}
		else
		{
			$this->_status( 'OK' );
		}
	}
protected function _process ( array $ stmts ) { $ table = 'mshop_plugin' ; $ constraint = 'fk_msplu_typeid' ; $ this -> _msg ( 'Adding constraint for table mshop_plugin' , 0 ) ; $ this -> _status ( '' ) ; $ this -> _msg ( sprintf ( 'Checking constraint "%1$s": ' , $ constraint ) , 1 ) ; if ( $ this -> _schema -> tableExists ( $ table ) === true && $ this -> _schema -> columnExists ( $ table , 'typeid' ) && $ this -> _schema -> constraintExists ( $ table , $ constraint ) === false ) { $ this -> _execute ( $ stmts [ $ constraint ] ) ; $ this -> _status ( 'added' ) ; } else { $ this -> _status ( 'OK' ) ; } }
Adds typeid constraint to mshop_plugin if necessary.

@param array $stmts Associative array of tables names and lists of SQL statements to execute.
Adds typeid constraint to mshop_plugin if necessary .