src/Database/Migration/SchemaConnection.php
/**
	 * Checks if the table exists in the database.
	 *
	 * @param string $tableName
	 * @return bool
	 */
Checks if the table exists in the database.
@param string $tableName
@return bool
Checks if the table exists in the database . @param string $tableName @return bool
public function hasTable($tableName) {
		$query = str_join(
			'SHOW TABLES LIKE',
			Grammar::compileString($this->prefix($tableName))
		) . ';';
		$rows = $this->database->query($query);
		return count($rows) > 0;
	}
public function hasTable ( $ tableName ) { $ query = str_join ( 'SHOW TABLES LIKE' , Grammar :: compileString ( $ this -> prefix ( $ tableName ) ) ) . ';' ; $ rows = $ this -> database -> query ( $ query ) ; return count ( $ rows ) > 0 ; }
Checks if the table exists in the database.
Checks if the table exists in the database .