Skip to content

new custom command to update the service-URL in the database #1225

Description

I would love to see a new custom command like these:
https://www.bookstackapp.com/docs/admin/commands/

The new command should be able to update each and every occurance of the BookStack-URL in every table and column of the database.

This means it would have to accept two parameters:

  1. the old, possible invalid URL
  2. the new, currently working URL

example:
php artisan bookstack:update-url http://unsecure.old.link:8080 https://bookstack.new.url

Reason:
As (internal) Links and images are stored with the URL that was used when uploading the image or creating a link, these links might get broken if you migrate your BookStack-Instance to a new URL. This results in:

  • internal links not working
  • pictures not being displayed

Manually fixing these things via direct manual SQL-database editing might not be perfect for everyone as it's really easy to mess up, so a "ready to go"-command would be a blessing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions