-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Add missing FK for monitor-tls-info table (#4632)
- Loading branch information
1 parent
0923d05
commit 08f75b0
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters