%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/coding/vendor/laravel/framework/src/Illuminate/Database/Schema/
Upload File :
Create Path :
Current File : /var/www/html/coding/vendor/laravel/framework/src/Illuminate/Database/Schema/PostgresBuilder.php

<?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;
    }
}

Zerion Mini Shell 1.0