From 5394876236afc3eb724ceebeac08abbbd9f2382b Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Fri, 24 Jun 2016 13:02:38 +0200 Subject: also allow users to edit the help. The code is still a little ugly. --- install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install.php') diff --git a/install.php b/install.php index f3469abc..d09cbff2 100644 --- a/install.php +++ b/install.php @@ -84,6 +84,12 @@ function tableExists($table) return false; } +function tableRename($old, $new) { + $res = Database::simpleQuery("RENAME TABLE $old TO $new", []); + return $res; +} + + function tableCreate($table, $structure, $fatalOnError = true) { if (tableExists($table)) { @@ -252,4 +258,4 @@ HERE; HERE; -} \ No newline at end of file +} -- cgit v1.2.3-55-g7522