fixes the problem adding new nodes using the API
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 19 Mar 2009 16:09:59 +0000 (16:09 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 19 Mar 2009 16:09:59 +0000 (16:09 +0000)
as boot_states changed we should change the default value for the node

migrations/v42-to-v43/migrate.sql

index dc16b69..7ec4409 100644 (file)
@@ -133,6 +133,7 @@ INSERT INTO node_types (node_type) VALUES ('dummynet');
 -- nodes
 ----------------------------------------
 ALTER TABLE nodes ADD COLUMN node_type TEXT REFERENCES node_types  DEFAULT 'regular'; -- node types
+ALTER TABLE nodes ALTER COLUMN boot_state SET DEFAULT 'reinstall'; -- boot_states changed in planetlab5.sql
 ALTER TABLE nodes ADD COLUMN verified boolean NOT NULL DEFAULT false;  -- whether or not the node & pcu are verified
 ALTER TABLE nodes ADD COLUMN run_level TEXT REFERENCES run_levels DEFAULT NULL; -- Node Run Level