From 18e80879f2d1206c3d43d4f5bbe0610bfa5c1f62 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 10 Nov 2012 15:24:10 +0530 Subject: [PATCH] Make sure that SQLite uses no prefix Otherwise, when user selects MySQL, sets the prefix, then switches to SQLite, the tables will created with prefix however the prefix will be absent from LocalSettings, making the wiki dead on arrival. Change-Id: I6360af819f87b03c2e9967207c43bca95f931a00 --- includes/installer/SqliteInstaller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/installer/SqliteInstaller.php b/includes/installer/SqliteInstaller.php index 6e1a74f61b..d8fa72441c 100644 --- a/includes/installer/SqliteInstaller.php +++ b/includes/installer/SqliteInstaller.php @@ -113,6 +113,8 @@ class SqliteInstaller extends DatabaseInstaller { $dir = self::realpath( $dir ); $this->setVar( 'wgSQLiteDataDir', $dir ); } + # Table prefix is not used on SQLite, keep it empty + $this->setVar( 'wgDBprefix', '' ); return $result; } -- 2.20.1