mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
18 lines
505 B
SQL
18 lines
505 B
SQL
ALTER TABLE remote_instance RENAME COLUMN windowid TO screenid;
|
|
ALTER TABLE line RENAME COLUMN windowid TO screenid;
|
|
|
|
UPDATE remote_instance
|
|
SET screenid = COALESCE((SELECT screen.screenid FROM screen WHERE screen.windowid = remote_instance.screenid), '')
|
|
WHERE screenid <> ''
|
|
;
|
|
|
|
UPDATE line
|
|
SET screenid = COALESCE((SELECT screen.screenid FROM screen WHERE screen.windowid = line.screenid), '')
|
|
WHERE screenid <> ''
|
|
;
|
|
|
|
ALTER TABLE history DROP COLUMN windowid;
|
|
ALTER TABLE screen DROP COLUMN windowid;
|
|
|
|
|