wordpress/wp-content/plugins/sqlite-integration/query_create.class.php
/**
	 * Method for rewriting primary key.
	 *
	 * @access private
	 */
Method for rewriting primary key.
@access private
Method for rewriting primary key . @access private
private function rewrite_primary_key(){
		if ($this->has_primary_key) {
			$this->_query  = preg_replace('/\\s*primary key\\s*.*?\([^\)]*\)\\s*(,|)/i', ' ', $this->_query);
		} else {
			$this->_query = preg_replace('/\\bprimary\\s*key\\s*.*?\\s*(\(.*?\))/im', 'PRIMARY KEY \\1', $this->_query);
		}
	}
private function rewrite_primary_key ( ) { if ( $ this -> has_primary_key ) { $ this -> _query = preg_replace ( '/\\s*primary key\\s*.*?\([^\)]*\)\\s*(,|)/i' , ' ' , $ this -> _query ) ; } else { $ this -> _query = preg_replace ( '/\\bprimary\\s*key\\s*.*?\\s*(\(.*?\))/im' , 'PRIMARY KEY \\1' , $ this -> _query ) ; } }
Method for rewriting primary key.
Method for rewriting primary key .
// If primary key has an index name, we remove that name.