mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 14:30:58 -04:00
Fix #1409, slug cannot be empty
This commit is contained in:
parent
6c7a0ff7d3
commit
28d72fcd08
3 changed files with 28 additions and 5 deletions
|
@ -218,6 +218,10 @@ class Database {
|
|||
* @returns {Promise<void>}
|
||||
*/
|
||||
static async migrateNewStatusPage() {
|
||||
|
||||
// Fix 1.13.0 empty slug bug
|
||||
await R.exec("UPDATE status_page SET slug = 'empty-slug-recover' WHERE TRIM(slug) = ''");
|
||||
|
||||
let title = await setting("title");
|
||||
|
||||
if (title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue