Moved update script to 3.6.0
parent
99bcc90c03
commit
f1df99c5ae
|
@ -724,12 +724,7 @@ class Installer
|
|||
('jabber_username', ''),
|
||||
('jabber_domain', ''),
|
||||
('jabber_password', '');";
|
||||
|
||||
$queries[] = "INSERT INTO `" . PSM_DB_PREFIX . "users` (
|
||||
`user_name`, `level`, `name`, `email`)
|
||||
VALUES ('__PUBLIC__', 30, 'Public page', 'publicpage@psm.psm')";
|
||||
$this->execSQL($queries);
|
||||
$this->log('Added user \'__PUBLIC__\'.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -758,6 +753,11 @@ class Installer
|
|||
ADD `discord` VARCHAR( 255 ) NOT NULL AFTER `mobile`;";
|
||||
$queries[] = "ALTER TABLE `" . PSM_DB_PREFIX . "servers`
|
||||
ADD `discord` ENUM( 'yes','no' ) NOT NULL DEFAULT 'yes' AFTER `sms`;";
|
||||
$queries[] = "INSERT INTO `" . PSM_DB_PREFIX . "users` (
|
||||
`user_name`, `level`, `name`, `email`)
|
||||
VALUES ('__PUBLIC__', 30, 'Public page', 'publicpage@psm.psm')";
|
||||
$this->execSQL($queries);
|
||||
|
||||
$this->log('Public page is now available. Added user \'__PUBLIC__\'. See documentation for more info.');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue