Skip to content

Commit

Permalink
Fix parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
sclubricants committed Sep 25, 2022
1 parent f0d9772 commit 3b325ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions system/Database/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,8 @@ protected function _dropKeyAsConstraint(string $table, string $constraintName):

/**
* Drop Primary Key
*
* @param mixed $keyName
*/
public function dropPrimaryKey(string $table, $keyName = ''): bool
public function dropPrimaryKey(string $table, string $keyName = ''): bool
{
$sql = sprintf(
'ALTER TABLE %s DROP CONSTRAINT %s',
Expand Down
4 changes: 1 addition & 3 deletions system/Database/MySQLi/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,8 @@ public function dropKey(string $table, string $keyName, bool $prefixKeyName = tr

/**
* Drop Primary Key
*
* @param mixed $keyName
*/
public function dropPrimaryKey(string $table, $keyName = ''): bool
public function dropPrimaryKey(string $table, string $keyName = ''): bool
{
$sql = sprintf(
'ALTER TABLE %s DROP PRIMARY KEY',
Expand Down
4 changes: 1 addition & 3 deletions system/Database/SQLite3/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,8 @@ public function dropForeignKey(string $table, string $foreignName): bool

/**
* Drop Primary Key
*
* @param mixed $keyName
*/
public function dropPrimaryKey(string $table, $keyName = ''): bool
public function dropPrimaryKey(string $table, string $keyName = ''): bool
{
$sqlTable = new Table($this->db, $this);

Expand Down

0 comments on commit 3b325ee

Please sign in to comment.