From: Thierry Parmentelat Date: Fri, 19 Sep 2008 06:52:09 +0000 (+0000) Subject: clean up the boot states area X-Git-Tag: PLCAPI-4.3-2~30 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c9d527ccc5d4cd91ee45e23f877db45a6d472f36;p=plcapi.git clean up the boot states area --- diff --git a/migrations/v4-to-v5/migrate.sql b/migrations/v4-to-v5/migrate.sql index 6f36acbc..c02390f7 100644 --- a/migrations/v4-to-v5/migrate.sql +++ b/migrations/v4-to-v5/migrate.sql @@ -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'; diff --git a/planetlab5.sql b/planetlab5.sql index 0f3e9fd4..b4c05167 100644 --- a/planetlab5.sql +++ b/planetlab5.sql @@ -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 (