mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-07 19:28:44 +01:00
18 lines
477 B
MySQL
18 lines
477 B
MySQL
|
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)
|
||
|
WHERE screenid <> ''
|
||
|
;
|
||
|
|
||
|
UPDATE line
|
||
|
SET screenid = (SELECT screen.screenid FROM screen WHERE screen.windowid = line.screenid)
|
||
|
WHERE screenid <> ''
|
||
|
;
|
||
|
|
||
|
ALTER TABLE history DROP COLUMN windowid;
|
||
|
ALTER TABLE screen DROP COLUMN windowid;
|
||
|
|
||
|
|