mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Do not use table perfix for sqlite
This commit is contained in:
parent
a26ef87840
commit
c718716e57
2 changed files with 4 additions and 2 deletions
|
|
@ -186,11 +186,13 @@ class OC_CONFIG{
|
|||
//create/fill database
|
||||
$CONFIG_DBTYPE=$dbtype;
|
||||
$CONFIG_DBNAME=$_POST['dbname'];
|
||||
$CONFIG_DBTABLEPREFIX=$_POST['dbtableprefix'];
|
||||
if($dbtype!='sqlite'){
|
||||
$CONFIG_DBTABLEPREFIX=$_POST['dbtableprefix'];
|
||||
$CONFIG_DBHOST=$_POST['dbhost'];
|
||||
$CONFIG_DBUSER=$_POST['dbuser'];
|
||||
$CONFIG_DBPASSWORD=$_POST['dbpassword'];
|
||||
}else{
|
||||
$_POST['dbtableprefix']='';
|
||||
}
|
||||
try{
|
||||
if(isset($_POST['createdatabase']) and $CONFIG_DBTYPE!='sqlite'){
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function showBackupPath(){
|
|||
function dbtypechange(){
|
||||
var dropdown=action=document.getElementById('dbtype');
|
||||
var type=dropdown.options[dropdown.selectedIndex].value;
|
||||
var inputs=Array('dbhost','dbuser','dbpass','dbpass_retype','dbcreaterow','dbAdminPwd','dbAdminUser','dbname','dbfill');
|
||||
var inputs=Array('dbhost','dbuser','dbpass','dbpass_retype','dbcreaterow','dbAdminPwd','dbAdminUser','dbname','dbfill','dbtableprefix');
|
||||
var id,element;
|
||||
if(type=='sqlite'){
|
||||
for(i in inputs){
|
||||
|
|
|
|||
Loading…
Reference in a new issue