Fixed error creating a new user on newer versions of mysql/mariadb

This commit is contained in:
kolaente 2017-10-04 18:27:26 +02:00
parent 81530d956b
commit 33e88b3daf
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ ALTER TABLE `' . $_POST['db_prefix'] . 'system_loggedin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `' . $_POST['db_prefix'] . 'system_roles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
ALTER TABLE `' . $_POST['db_prefix'] . 'system_admins`
ALTER COLUMN lvl SET DEFAULT 0;
ALTER TABLE `' . $_POST['db_prefix'] . 'system_admins`
ALTER COLUMN secret SET DEFAULT "";
')
)
{