Message::Fail("Warning: DEFAULT_USER is set in config.php. You should remove that item now, as it is only used during installation.");
}
+ /**
+ * Delete all the tables (of us) in the SQLdb
+ * @return void
+ */
+ public static function delete_tables()
+ {
+ $conn = sqlnew();
+ foreach(["users","user_meta", "settings", "fail2ban"] as $table_name)
+ $conn->query("DROP TABLE IF EXISTS " . get_config("mysql::table_prefix") . $table_name);
+ }
+
/**
* Create the tables we'll be using in the SQLdb
* @return void
write_config_file();
if ($auth_method == "sql_auth")
+ {
+ sql_auth::delete_tables();
if (!sql_auth::create_tables())
Message::Fail("Could not create SQL tables");
+ }
$user = [
"user_name" => $opts->account_user,