D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
www
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Schema
/
Filename :
PostgresBuilder.php
back
Copy
<?php namespace Illuminate\Database\Schema; class PostgresBuilder extends Builder { /** * Determine if the given table exists. * * @param string $table * @return bool */ public function hasTable($table) { if (is_array($schema = $this->connection->getConfig('schema'))) { $schema = head($schema); } $schema = $schema ? $schema : 'public'; $table = $this->connection->getTablePrefix().$table; return count($this->connection->select( $this->grammar->compileTableExists(), [$schema, $table] )) > 0; } }