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
{ if ($asQuery === false
) { return parent::
_processPrimaryKeys($table,
$asQuery);
} $sqlTable =
new Table($this->db,
$this);
$sqlTable->
fromTable($this->db->DBPrefix .
$table) ->
addPrimaryKey($this->primaryKeys
) ->
run();
return '';
}