clean up the boot states area
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 19 Sep 2008 06:52:09 +0000 (06:52 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 19 Sep 2008 06:52:09 +0000 (06:52 +0000)
migrations/v4-to-v5/migrate.sql
planetlab5.sql

index 6f36acb..c02390f 100644 (file)
@@ -242,8 +242,8 @@ INSERT INTO boot_states (boot_state)
 -- rcnf              failboot ?
 
 
-UPDATE nodes SET boot_state='safeboot' WHERE boot_state='dbg';
-UPDATE nodes SET boot_state='failboot' WHERE boot_state='diag';
+UPDATE nodes SET boot_state='failboot' WHERE boot_state='dbg';
+UPDATE nodes SET boot_state='safeboot' WHERE boot_state='diag';
 UPDATE nodes SET boot_state='disabled' WHERE boot_state='disable';
 UPDATE nodes SET boot_state='install' WHERE boot_state='inst';
 UPDATE nodes SET boot_state='reinstall' WHERE boot_state='rins';
index 0f3e9fd..b4c0516 100644 (file)
@@ -252,7 +252,7 @@ CREATE TABLE boot_states (
     boot_state text PRIMARY KEY
 ) WITH OIDS;
 INSERT INTO boot_states (boot_state) 
-       VALUES ('boot'), ('dbg'), ('diag'), ('disable'), ('inst'), ('rins'), ('new');
+       VALUES ('boot'), ('safeboot'), ('failboot'), ('disabled'), ('install'), ('reinstall');
 
 -- Nodes
 CREATE TABLE nodes (