Skip to content
Snippets Groups Projects
Commit 6f906051 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Sqlite can't be supported until alter table add constraint is

supported by sqlite, so choice is hidden
parent 3eb6ee20
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class DoliDBMysqli extends DoliDB
//! Database type
public $type='mysqli';
//! Database label
const LABEL='MySQL';
const LABEL='MySQL or MariaDB';
//! Version min database
const VERSIONMIN='4.1.3';
/** @var mysqli_result Resultset of last query */
......
......@@ -308,7 +308,8 @@ if (! empty($force_install_message))
$class='DoliDB'.ucfirst($type);
include_once $dir."/".$file;
if ($type == 'sqlite') continue; // We hide sqlite because support can't be complete until sqlite does not manage foreign key creation after table creation
if ($type == 'sqlite') continue; // We hide sqlite because support can't be complete until sqlite does not manage foreign key creation after table creation (ALTER TABLE child ADD CONSTRAINT not supported)
if ($type == 'sqlite3') continue; // We hide sqlite3 because support can't be complete until sqlite does not manage foreign key creation after table creation (ALTER TABLE child ADD CONSTRAINT not supported)
// Version min of database
$versionbasemin=explode('.',$class::VERSIONMIN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment