diff options
author | Christian Klinger | 2016-06-24 13:02:38 +0200 |
---|---|---|
committer | Christian Klinger | 2016-06-24 13:02:38 +0200 |
commit | 5394876236afc3eb724ceebeac08abbbd9f2382b (patch) | |
tree | 6175a968d612dc24e5e41b6de70ad7b15e876f99 /install.php | |
parent | [exams] Apply formatting (diff) | |
download | slx-admin-5394876236afc3eb724ceebeac08abbbd9f2382b.tar.gz slx-admin-5394876236afc3eb724ceebeac08abbbd9f2382b.tar.xz slx-admin-5394876236afc3eb724ceebeac08abbbd9f2382b.zip |
also allow users to edit the help.
The code is still a little ugly.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 8 |
1 files changed, 7 insertions, 1 deletions
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; </html> HERE; -}
\ No newline at end of file +} |