mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-06 19:18:22 +01:00
prevent nulls (problem with my DB)
This commit is contained in:
parent
e01a0a7fa0
commit
2ba3a09285
@ -2,12 +2,12 @@ ALTER TABLE remote_instance RENAME COLUMN windowid TO screenid;
|
||||
ALTER TABLE line RENAME COLUMN windowid TO screenid;
|
||||
|
||||
UPDATE remote_instance
|
||||
SET screenid = (SELECT screen.screenid FROM screen WHERE screen.windowid = remote_instance.screenid)
|
||||
SET screenid = COALESCE((SELECT screen.screenid FROM screen WHERE screen.windowid = remote_instance.screenid), '')
|
||||
WHERE screenid <> ''
|
||||
;
|
||||
|
||||
UPDATE line
|
||||
SET screenid = (SELECT screen.screenid FROM screen WHERE screen.windowid = line.screenid)
|
||||
SET screenid = COALESCE((SELECT screen.screenid FROM screen WHERE screen.windowid = line.screenid), '')
|
||||
WHERE screenid <> ''
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user