Skip to content

Commit

Permalink
Merge pull request #4032 from mostafakhudair/use-forge-statement
Browse files Browse the repository at this point in the history
Alias Forge with use operator
  • Loading branch information
samsonasik committed Dec 27, 2020
2 parents 4d5bbdf + 0ea6ac4 commit 747eb0c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
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();
}

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

}

0 comments on commit 747eb0c

Please sign in to comment.