$sqlTable =
new Table($this->db,
$this);
return $sqlTable->
fromTable($this->db->DBPrefix .
$table) ->
dropPrimaryKey() ->
run();
} public function addForeignKey($fieldName = '', string
$tableName = '',
$tableField = '', string
$onUpdate = '', string
$onDelete = '', string
$fkName = ''
): BaseForge
{ if ($fkName === ''
) { return parent::
addForeignKey($fieldName,
$tableName,
$tableField,
$onUpdate,
$onDelete,
$fkName);
} throw new DatabaseException('SQLite does not support foreign key names. CodeIgniter will refer to them in the format: prefix_table_column_referencecolumn_foreign'
);
} /**
* Generates SQL to add primary key
*
* @param bool $asQuery When true recreates table with key, else partial SQL used with CREATE TABLE
*/
protected function _processPrimaryKeys(string
$table, bool
$asQuery = false
): string
{