waveterm/wavesrv/db/migrations/000018_modremote.down.sql

15 lines
301 B
MySQL
Raw Normal View History

ALTER TABLE remote ADD COLUMN remotesudo;
UPDATE remote
SET remotesudo = 1
WHERE json_extract(sshopts, '$.issudo')
;
UPDATE remote
SET sshopts = json_remove(sshopts, '$.issudo')
;
ALTER TABLE remote ADD COLUMN physicalid varchar(36) NOT NULL DEFAULT '';
ALTER TABLE remote DROP COLUMN openaiopts;