]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/UpdateUrlCommand.php
Add optional OIDC avatar fetching from the “picture” claim
[bookstack] / app / Console / Commands / UpdateUrlCommand.php
index 27f84cc89f30689f40a87e80aaafa9181bcfb432..e155878d331b8a5f3661603dfa1994c4007e9e51 100644 (file)
@@ -46,6 +46,10 @@ class UpdateUrlCommand extends Command
         $columnsToUpdateByTable = [
             'attachments' => ['path'],
             'pages'       => ['html', 'text', 'markdown'],
+            'chapters'    => ['description_html'],
+            'books'       => ['description_html'],
+            'bookshelves' => ['description_html'],
+            'page_revisions' => ['html', 'text', 'markdown'],
             'images'      => ['url'],
             'settings'    => ['value'],
             'comments'    => ['html', 'text'],
@@ -74,6 +78,12 @@ class UpdateUrlCommand extends Command
         $this->info('URL update procedure complete.');
         $this->info('============================================================================');
         $this->info('Be sure to run "php artisan cache:clear" to clear any old URLs in the cache.');
+
+        if (!str_starts_with($newUrl, url('/'))) {
+            $this->warn('You still need to update your APP_URL env value. This is currently set to:');
+            $this->warn(url('/'));
+        }
+
         $this->info('============================================================================');
 
         return 0;