Skip to content

Commit 7f473da

Browse files
committed
2.1.x-2.2.x upgrade: in "volumes" table use state=Destroy instead of "Destroyed"
1 parent 55627a9 commit 7f473da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup/db/db/schema-21to22.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ ALTER TABLE `cloud`.`volumes` ADD COLUMN `chain_info` text;
270270
ALTER TABLE `cloud`.`volumes` MODIFY COLUMN `volume_type` VARCHAR(64) NOT NULL;
271271

272272
ALTER TABLE `cloud`.`volumes` ADD COLUMN `state` VARCHAR(32);
273-
UPDATE `cloud`.`volumes` SET state='Destroyed' WHERE removed IS NOT NULL OR destroyed=1 OR status='Creating' OR status='Corrupted' OR status='Failed';
273+
UPDATE `cloud`.`volumes` SET state='Destroy' WHERE removed IS NOT NULL OR destroyed=1 OR status='Creating' OR status='Corrupted' OR status='Failed';
274274
UPDATE `cloud`.`volumes` SET state='Ready' WHERE removed IS NULL AND (destroyed=0 OR destroyed is NULL) AND status='Created';
275275
ALTER TABLE `cloud`.`volumes` MODIFY COLUMN `state` VARCHAR(32) NOT NULL;
276276

0 commit comments

Comments
 (0)