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:
- the old, possible invalid URL
- 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.
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:
example:
php artisan bookstack:update-url http://unsecure.old.link:8080 https://bookstack.new.urlReason:
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:
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.