Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias Forge with use operator #4032

Merged
merged 1 commit into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions system/Database/MySQLi/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

namespace CodeIgniter\Database\MySQLi;

use CodeIgniter\Database\Forge as BaseForge;

/**
* Forge for MySQLi
*/
class Forge extends \CodeIgniter\Database\Forge
class Forge extends BaseForge
{
/**
* CREATE DATABASE statement
Expand Down Expand Up @@ -246,6 +248,4 @@ protected function _processIndexes(string $table): string

return $sql;
}

//--------------------------------------------------------------------
}
7 changes: 3 additions & 4 deletions system/Database/Postgre/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

namespace CodeIgniter\Database\Postgre;

use CodeIgniter\Database\Forge as BaseForge;

/**
* Forge for Postgre
*/
class Forge extends \CodeIgniter\Database\Forge
class Forge extends BaseForge
{
/**
* CHECK DATABASE EXIST statement
Expand Down Expand Up @@ -226,7 +228,4 @@ protected function _dropTable(string $table, bool $ifExists, bool $cascade): str

return $sql;
}

//--------------------------------------------------------------------

}
4 changes: 3 additions & 1 deletion system/Database/SQLSRV/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

namespace CodeIgniter\Database\SQLSRV;

use CodeIgniter\Database\Forge as BaseForge;

/**
* Forge for SQLSRV
*/
class Forge extends \CodeIgniter\Database\Forge
class Forge extends BaseForge
{
/**
* DROP CONSTRAINT statement
Expand Down
6 changes: 2 additions & 4 deletions system/Database/SQLite3/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@

use CodeIgniter\Database\BaseConnection;
use CodeIgniter\Database\Exceptions\DatabaseException;
use CodeIgniter\Database\Forge as BaseForge;

/**
* Forge for SQLite3
*/
class Forge extends \CodeIgniter\Database\Forge
class Forge extends BaseForge
{
/**
* UNSIGNED support
Expand Down Expand Up @@ -297,7 +298,4 @@ public function dropForeignKey(string $table, string $foreignName): bool
->dropForeignKey($foreignName)
->run();
}

//--------------------------------------------------------------------

}