manual db upgrade command

This commit is contained in:
Shish 2019-11-03 17:20:57 +00:00
parent 031c441e47
commit 2f23a11096

View File

@ -61,11 +61,17 @@ class AdminPage extends Extension
public function onCommand(CommandEvent $event)
{
if ($event->cmd == "help") {
print "\tdb-upgrade\n";
print "\t\tRun DB schema updates, if automatic updates are disabled\n\n";
print "\tget-page <query string>\n";
print "\t\teg 'get-page post/list'\n\n";
print "\tregen-thumb <id / hash>\n";
print "\t\tregenerate a thumbnail\n\n";
}
if ($event->cmd == "db-upgrade") {
print("Running DB Upgrade");
send_event(new DatabaseUpgradeEvent());
}
if ($event->cmd == "get-page") {
global $page;
send_event(new PageRequestEvent($event->args[0]));