From 58a809b0e890e037b03613cfe10e3d5408bc46ad Mon Sep 17 00:00:00 2001 From: Burak Yucesoy Date: Tue, 18 Apr 2017 09:40:44 +0300 Subject: [PATCH] Set default value of isactive to true With this change, we set to default value of isactive column to true so that upgrading users all nodes will be marked as active to not break their environment. --- src/backend/distributed/citus--6.2-2--6.2-3.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/distributed/citus--6.2-2--6.2-3.sql b/src/backend/distributed/citus--6.2-2--6.2-3.sql index ef52e3cac..6ec3ace56 100644 --- a/src/backend/distributed/citus--6.2-2--6.2-3.sql +++ b/src/backend/distributed/citus--6.2-2--6.2-3.sql @@ -2,7 +2,7 @@ SET search_path = 'pg_catalog'; -ALTER TABLE pg_dist_node ADD isactive bool; +ALTER TABLE pg_dist_node ADD isactive bool NOT NULL DEFAULT true; DROP FUNCTION IF EXISTS master_add_node(text, integer);