Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions admin/environment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5117,6 +5117,7 @@
<VENDOR name="postgres" version="16" />
<VENDOR name="mssql" version="15.0" />
<VENDOR name="auroramysql" version="8.0" />
<VENDOR name="sqlite" version="3.0" />
</DATABASE>
<PHP version="8.3.0" level="required">
</PHP>
Expand Down
5 changes: 3 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
if ($config->stage == INSTALL_SAVE) {
$CFG->early_install_lang = false;

$database = moodle_database::get_driver_instance($config->dbtype, 'native');
$database = moodle_database::get_driver_instance($config->dbtype, install_get_dblibrary($config->dbtype));
if (!$database->driver_installed()) {
$config->stage = INSTALL_DATABASETYPE;
} else {
Expand Down Expand Up @@ -407,7 +407,7 @@
if ($config->stage == INSTALL_DATABASE) {
$CFG->early_install_lang = false;

$database = moodle_database::get_driver_instance($config->dbtype, 'native');
$database = moodle_database::get_driver_instance($config->dbtype, install_get_dblibrary($config->dbtype));

$sub = '<h3>'.$database->get_name().'</h3>'.$database->get_configuration_help();

Expand Down Expand Up @@ -491,6 +491,7 @@
'mariadb'=> moodle_database::get_driver_instance('mariadb', 'native'),
'pgsql' => moodle_database::get_driver_instance('pgsql', 'native'),
'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // MS SQL*Server PHP driver
'sqlite3' => moodle_database::get_driver_instance('sqlite3', 'pdo'),
);

echo '<div class="row mb-4">';
Expand Down
1 change: 0 additions & 1 deletion lang/en/deprecated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ language_help,core_badges
version_help,core_badges
atto_h5p,core_h5p
atto_h5p_description,core_h5p
sqliteextensionisnotpresentinphp,core_install
siteevent,core_calendar
categoryevent,core_calendar
courseevent,core_calendar
Expand Down
6 changes: 5 additions & 1 deletion lang/en/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,9 @@
$string['wwwroot'] = 'Web address';
$string['wwwrooterror'] = 'The \'Web Address\' does not appear to be valid - this Moodle installation doesn\'t appear to be there. The value below has been reset.';

// Deprecated since Moodle 5.0.
$string['pdosqlite3'] = 'SQLite 3 (PDO)';
$string['pdosqlite3help'] = '<p>The database is where most of the Moodle settings and data are stored and must be configured here.</p>
<p>The database file will be stored in the data directory. The database name and optional password are used to generate the filename.</p>
<p>No external database server is required.</p>';

$string['sqliteextensionisnotpresentinphp'] = 'PHP has not been properly configured with the SQLite extension. Please check your php.ini file or recompile PHP.';
Loading
Loading