From: Barış Metin Date: Thu, 19 Mar 2009 16:09:59 +0000 (+0000) Subject: fixes the problem adding new nodes using the API X-Git-Tag: PLCAPI-4.3-4~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=934411d45748937a481a4387887d051256dfdee0;hp=274a4fab7b8b1b54a43a6b08d4f28fa69693b94a;p=plcapi.git fixes the problem adding new nodes using the API as boot_states changed we should change the default value for the node --- diff --git a/migrations/v42-to-v43/migrate.sql b/migrations/v42-to-v43/migrate.sql index dc16b69..7ec4409 100644 --- a/migrations/v42-to-v43/migrate.sql +++ b/migrations/v42-to-v43/migrate.sql @@ -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