dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4903e9
)
Make sure that SQLite uses no prefix
author
Max Semenik
<maxsem.wiki@gmail.com>
Sat, 10 Nov 2012 09:54:10 +0000
(15:24 +0530)
committer
Max Semenik
<maxsem.wiki@gmail.com>
Sat, 10 Nov 2012 09:54:10 +0000
(15:24 +0530)
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
patch
|
blob
|
history
diff --git
a/includes/installer/SqliteInstaller.php
b/includes/installer/SqliteInstaller.php
index
6e1a74f
..
d8fa724
100644
(file)
--- 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;
}