From 6f90605185d90cbde24e0c2c0ae0108586723fb8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sun, 12 Jul 2015 11:44:37 +0200 Subject: [PATCH] Fix: Sqlite can't be supported until alter table add constraint is supported by sqlite, so choice is hidden --- htdocs/core/db/mysqli.class.php | 2 +- htdocs/install/fileconf.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index 591789fcd89..d714a277ae0 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -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 */ diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 92d2fc963a8..21e975f8b29 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -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); -- GitLab