mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 11:37:39 +01:00
19 lines
323 B
MySQL
19 lines
323 B
MySQL
|
BEGIN TRANSACTION;
|
||
|
|
||
|
PRAGMA writable_schema = TRUE;
|
||
|
|
||
|
UPDATE
|
||
|
SQLITE_MASTER
|
||
|
SET
|
||
|
sql = replace(sql,
|
||
|
'monitor_id INTEGER NOT NULL',
|
||
|
'monitor_id INTEGER NOT NULL REFERENCES [monitor] ([id]) ON DELETE CASCADE ON UPDATE CASCADE'
|
||
|
)
|
||
|
WHERE
|
||
|
name = 'monitor_tls_info'
|
||
|
AND type = 'table';
|
||
|
|
||
|
PRAGMA writable_schema = RESET;
|
||
|
|
||
|
COMMIT;
|