This cleans up formatting in SQL to make further code reviews easier.
- whitespace formatting changes
- consistent use of uppercase for SQL commands
- update copyrights for OpenInfra foundation
Issue-ID: POLICY-5398
Change-Id: I52b852319d9e2047afd00ad6c4790b16ee161d99
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE automationcomposition (instanceId VARCHAR(255) NOT NULL, compositionId VARCHAR(255), compositionTargetId VARCHAR(255), deployState SMALLINT DEFAULT NULL, description VARCHAR(255), lockState SMALLINT DEFAULT NULL, name VARCHAR(255), restarting BOOLEAN, stateChangeResult SMALLINT DEFAULT NULL, version VARCHAR(255), CONSTRAINT PK_AUTOMATIONCOMPOSITION PRIMARY KEY (instanceId));
\ No newline at end of file
+CREATE TABLE automationcomposition (
+ instanceId VARCHAR(255) NOT NULL,
+ compositionId VARCHAR(255),
+ compositionTargetId VARCHAR(255),
+ deployState SMALLINT DEFAULT NULL,
+ description VARCHAR(255),
+ lockState SMALLINT DEFAULT NULL,
+ name VARCHAR(255),
+ restarting BOOLEAN,
+ stateChangeResult SMALLINT DEFAULT NULL,
+ version VARCHAR(255),
+ CONSTRAINT PK_AUTOMATIONCOMPOSITION PRIMARY KEY (instanceId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE automationcompositiondefinition (compositionId VARCHAR(255) NOT NULL, name VARCHAR(255), restarting BOOLEAN, serviceTemplate TEXT, state SMALLINT DEFAULT NULL, stateChangeResult SMALLINT DEFAULT NULL, version VARCHAR(255), CONSTRAINT PK_AUTOMATIONCOMPOSITIONDEFINITION PRIMARY KEY (compositionId));
\ No newline at end of file
+CREATE TABLE automationcompositiondefinition (
+ compositionId VARCHAR(255) NOT NULL,
+ name VARCHAR(255),
+ restarting BOOLEAN,
+ serviceTemplate TEXT,
+ state SMALLINT DEFAULT NULL,
+ stateChangeResult SMALLINT DEFAULT NULL,
+ version VARCHAR(255),
+ CONSTRAINT PK_AUTOMATIONCOMPOSITIONDEFINITION PRIMARY KEY (compositionId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE automationcompositionelement (elementId VARCHAR(255) NOT NULL, definition_name VARCHAR(255), definition_version VARCHAR(255), deployState SMALLINT DEFAULT NULL, description VARCHAR(255), instanceId VARCHAR(255), lockState SMALLINT DEFAULT NULL, message VARCHAR(255), operationalState VARCHAR(255), outProperties TEXT, participantId VARCHAR(255), properties TEXT, restarting BOOLEAN, useState VARCHAR(255), CONSTRAINT PK_AUTOMATIONCOMPOSITIONELEMENT PRIMARY KEY (elementId));
\ No newline at end of file
+CREATE TABLE automationcompositionelement (
+ elementId VARCHAR(255) NOT NULL,
+ definition_name VARCHAR(255),
+ definition_version VARCHAR(255),
+ deployState SMALLINT DEFAULT NULL,
+ description VARCHAR(255),
+ instanceId VARCHAR(255),
+ lockState SMALLINT DEFAULT NULL,
+ message VARCHAR(255),
+ operationalState VARCHAR(255),
+ outProperties TEXT,
+ participantId VARCHAR(255),
+ properties TEXT,
+ restarting BOOLEAN,
+ useState VARCHAR(255),
+ CONSTRAINT PK_AUTOMATIONCOMPOSITIONELEMENT PRIMARY KEY (elementId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE nodetemplatestate (nodeTemplateStateId VARCHAR(255) NOT NULL, compositionId VARCHAR(255), message VARCHAR(255), nodeTemplate_name VARCHAR(255), nodeTemplate_version VARCHAR(255), outProperties TEXT, participantId VARCHAR(255), restarting BOOLEAN, state SMALLINT DEFAULT NULL, CONSTRAINT PK_NODETEMPLATESTATE PRIMARY KEY (nodeTemplateStateId));
\ No newline at end of file
+CREATE TABLE nodetemplatestate (
+ nodeTemplateStateId VARCHAR(255) NOT NULL,
+ compositionId VARCHAR(255),
+ message VARCHAR(255),
+ nodeTemplate_name VARCHAR(255),
+ nodeTemplate_version VARCHAR(255),
+ outProperties TEXT,
+ participantId VARCHAR(255),
+ restarting BOOLEAN,
+ state SMALLINT DEFAULT NULL,
+ CONSTRAINT PK_NODETEMPLATESTATE PRIMARY KEY (nodeTemplateStateId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE participant (participantId VARCHAR(255) NOT NULL, description VARCHAR(255), participantState SMALLINT DEFAULT NULL, CONSTRAINT PK_PARTICIPANT PRIMARY KEY (participantId));
\ No newline at end of file
+CREATE TABLE participant (
+ participantId VARCHAR(255) NOT NULL,
+ description VARCHAR(255),
+ participantState SMALLINT DEFAULT NULL,
+ CONSTRAINT PK_PARTICIPANT PRIMARY KEY (participantId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE participantsupportedacelements (id VARCHAR(255) NOT NULL, participantId VARCHAR(255), typeName VARCHAR(255), typeVersion VARCHAR(255), CONSTRAINT PK_PARTICIPANTSUPPORTEDACELEMENTS PRIMARY KEY (id));
\ No newline at end of file
+CREATE TABLE participantsupportedacelements (
+ id VARCHAR(255) NOT NULL,
+ participantId VARCHAR(255),
+ typeName VARCHAR(255),
+ typeVersion VARCHAR(255),
+ CONSTRAINT PK_PARTICIPANTSUPPORTEDACELEMENTS PRIMARY KEY (id)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE INDEX ac_compositionId ON automationcomposition(compositionId);
\ No newline at end of file
+CREATE INDEX ac_compositionId ON automationcomposition(compositionId);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE INDEX ac_element_fk ON automationcompositionelement(instanceId);
\ No newline at end of file
+CREATE INDEX ac_element_fk ON automationcompositionelement(instanceId);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE INDEX dt_element_fk ON nodetemplatestate(compositionId);
\ No newline at end of file
+CREATE INDEX dt_element_fk ON nodetemplatestate(compositionId);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE INDEX supported_element_fk ON participantsupportedacelements(participantId);
\ No newline at end of file
+CREATE INDEX supported_element_fk ON participantsupportedacelements(participantId);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-ALTER TABLE automationcompositionelement ADD CONSTRAINT ac_element_fk FOREIGN KEY (instanceId) REFERENCES automationcomposition (instanceId) ON UPDATE RESTRICT ON DELETE RESTRICT;
\ No newline at end of file
+ALTER TABLE automationcompositionelement
+ ADD CONSTRAINT ac_element_fk
+ FOREIGN KEY (instanceId)
+ REFERENCES automationcomposition (instanceId)
+ ON UPDATE RESTRICT
+ ON DELETE RESTRICT;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-ALTER TABLE nodetemplatestate ADD CONSTRAINT dt_element_fk FOREIGN KEY (compositionId) REFERENCES automationcompositiondefinition (compositionId) ON UPDATE RESTRICT ON DELETE RESTRICT;
\ No newline at end of file
+ALTER TABLE nodetemplatestate
+ ADD CONSTRAINT dt_element_fk
+ FOREIGN KEY (compositionId)
+ REFERENCES automationcompositiondefinition (compositionId)
+ ON UPDATE RESTRICT
+ ON DELETE RESTRICT;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-ALTER TABLE participantsupportedacelements ADD CONSTRAINT supported_element_fk FOREIGN KEY (participantId) REFERENCES participant (participantId) ON UPDATE RESTRICT ON DELETE RESTRICT;
\ No newline at end of file
+ALTER TABLE participantsupportedacelements
+ ADD CONSTRAINT supported_element_fk
+ FOREIGN KEY (participantId)
+ REFERENCES participant (participantId)
+ ON UPDATE RESTRICT
+ ON DELETE RESTRICT;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE participantreplica (replicaId varchar(255) NOT NULL, lastMsg timestamp without time zone DEFAULT Now(), participantId varchar(255) DEFAULT NULL, participantState SMALLINT DEFAULT NULL, CONSTRAINT PK_PARTICIPANT_REPLICA PRIMARY KEY (replicaId));
+CREATE TABLE participantreplica (
+ replicaId varchar(255) NOT NULL,
+ lastMsg timestamp without time zone DEFAULT Now(),
+ participantId varchar(255) DEFAULT NULL,
+ participantState SMALLINT DEFAULT NULL,
+ CONSTRAINT PK_PARTICIPANT_REPLICA PRIMARY KEY (replicaId)
+);
+
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-ALTER TABLE participantreplica ADD CONSTRAINT participant_replica_fk FOREIGN KEY (participantId) REFERENCES participant (participantId) ON UPDATE RESTRICT ON DELETE RESTRICT;
+ALTER TABLE participantreplica
+ ADD CONSTRAINT participant_replica_fk
+ FOREIGN KEY (participantId)
+ REFERENCES participant (participantId)
+ ON UPDATE RESTRICT
+ ON DELETE RESTRICT;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2024 Nordix Foundation
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
- UPDATE automationcomposition SET substate=0 WHERE substate is NULL;
+UPDATE automationcomposition SET subState=0 WHERE subState is NULL;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
- UPDATE automationcompositionelement SET subState=0 WHERE substate is NULL;
- UPDATE automationcompositionelement SET stage=0 WHERE stage is NULL;
+UPDATE automationcompositionelement SET subState=0 WHERE subState is NULL;
+UPDATE automationcompositionelement SET stage=0 WHERE stage is NULL;
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE IF NOT EXISTS message (messageId varchar(255) NOT NULL, identificationId varchar(255) NOT NULL, lastMsg timestamp without time zone NOT NULL DEFAULT now(), docMessage text NOT NULL, CONSTRAINT PK_MESSAGE PRIMARY KEY (messageId));
+CREATE TABLE IF NOT EXISTS message (
+ messageId varchar(255) NOT NULL,
+ identificationId varchar(255) NOT NULL,
+ lastMsg timestamp without time zone NOT NULL DEFAULT now(),
+ docMessage text NOT NULL,
+ CONSTRAINT PK_MESSAGE PRIMARY KEY (messageId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================
*/
-CREATE TABLE IF NOT EXISTS messagejob (jobId varchar(255) NOT NULL, identificationId varchar(255) NOT NULL, jobStarted timestamp without time zone NOT NULL DEFAULT now(), CONSTRAINT PK_MESSAGE_JOB PRIMARY KEY (jobId));
+CREATE TABLE IF NOT EXISTS messagejob (
+ jobId varchar(255) NOT NULL,
+ identificationId varchar(255) NOT NULL,
+ jobStarted timestamp without time zone NOT NULL DEFAULT now(),
+ CONSTRAINT PK_MESSAGE_JOB PRIMARY KEY (jobId)
+);
/*
* ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ============LICENSE_END=========================================================\r
*/\r
\r
-CREATE TABLE automationcompositionrollback (instanceId VARCHAR(255) NOT NULL, compositionId VARCHAR(255) NOT NULL, elements TEXT NOT NULL, CONSTRAINT PK_AUTOMATIONCOMPOSITION_ROLLBACK PRIMARY KEY (instanceId)) WITHOUT OIDS;
\ No newline at end of file
+CREATE TABLE automationcompositionrollback (\r
+ instanceId VARCHAR(255) NOT NULL,\r
+ compositionId VARCHAR(255) NOT NULL,\r
+ elements TEXT NOT NULL,\r
+ CONSTRAINT PK_AUTOMATIONCOMPOSITION_ROLLBACK PRIMARY KEY (instanceId)\r
+) WITHOUT OIDS;\r
* ============LICENSE_END=========================================================
*/
-update automationcomposition set deployState = 2 where deployState is null;
-update automationcomposition set lockState = 4 where lockState is null;
-update automationcomposition set name = '' where name is null;
-update automationcomposition set version = '1.0.0' where version is null;
-update automationcomposition set lastMsg = now() where lastMsg is null;
-update automationcomposition set subState = 0 where subState is null;
+UPDATE automationcomposition SET deployState = 2 WHERE deployState IS NULL;
+UPDATE automationcomposition SET lockState = 4 WHERE lockState IS NULL;
+UPDATE automationcomposition SET name = '' WHERE name IS NULL;
+UPDATE automationcomposition SET version = '1.0.0' WHERE version IS NULL;
+UPDATE automationcomposition SET lastMsg = now() WHERE lastMsg IS NULL;
+UPDATE automationcomposition SET subState = 0 WHERE subState IS NULL;
ALTER TABLE automationcomposition
ALTER COLUMN compositionid SET NOT NULL,
* ============LICENSE_END=========================================================
*/
-update automationcompositionelement set definition_name = '' where definition_name is null;
-update automationcompositionelement set definition_version = '0.0.0' where definition_version is null;
-update automationcompositionelement set deploystate = 2 where deploystate is null;
-update automationcompositionelement set lockState = 4 where lockState is null;
-update automationcompositionelement set subState = 0 where subState is null;
+UPDATE automationcompositionelement SET definition_name = '' WHERE definition_name IS NULL;
+UPDATE automationcompositionelement SET definition_version = '0.0.0' WHERE definition_version IS NULL;
+UPDATE automationcompositionelement SET deploystate = 2 WHERE deploystate IS NULL;
+UPDATE automationcompositionelement SET lockState = 4 WHERE lockState IS NULL;
+UPDATE automationcompositionelement SET subState = 0 WHERE subState IS NULL;
ALTER TABLE automationcompositionelement
ALTER COLUMN definition_name SET NOT NULL,
* ============LICENSE_END=========================================================
*/
-ALTER TABLE automationcomposition ADD CONSTRAINT ac_composition_fk FOREIGN KEY (compositionId) REFERENCES automationcompositiondefinition (compositionId) ON UPDATE RESTRICT ON DELETE RESTRICT;
+ALTER TABLE automationcomposition
+ ADD CONSTRAINT ac_composition_fk
+ FOREIGN KEY (compositionId)
+ REFERENCES automationcompositiondefinition (compositionId)
+ ON UPDATE RESTRICT
+ ON DELETE RESTRICT;
* ============LICENSE_END=========================================================
*/
-update automationcompositiondefinition set name = '' where name is null;
-update automationcompositiondefinition set version = '1.0.0' where version is null;
-update automationcompositiondefinition set state = 0 where state is null;
-update automationcompositiondefinition set lastMsg = now() where lastMsg is null;
-update automationcompositiondefinition set serviceTemplate = '' where serviceTemplate is null;
+UPDATE automationcompositiondefinition SET name = '' WHERE name IS NULL;
+UPDATE automationcompositiondefinition SET version = '1.0.0' WHERE version IS NULL;
+UPDATE automationcompositiondefinition SET state = 0 WHERE state IS NULL;
+UPDATE automationcompositiondefinition SET lastMsg = now() WHERE lastMsg IS NULL;
+UPDATE automationcompositiondefinition SET serviceTemplate = '' WHERE serviceTemplate IS NULL;
ALTER TABLE automationcompositiondefinition
ALTER COLUMN name SET NOT NULL,
* ============LICENSE_END=========================================================
*/
-update nodetemplatestate set nodeTemplate_name = '' where nodeTemplate_name is null;
-update nodetemplatestate set nodeTemplate_version = '1.0.0' where nodeTemplate_version is null;
-update nodetemplatestate set outProperties = '{}' where outProperties is null;
-update nodetemplatestate set state = 0 where state is null;
+UPDATE nodetemplatestate SET nodeTemplate_name = '' WHERE nodeTemplate_name IS NULL;
+UPDATE nodetemplatestate SET nodeTemplate_version = '1.0.0' WHERE nodeTemplate_version IS NULL;
+UPDATE nodetemplatestate SET outProperties = '{}' WHERE outProperties IS NULL;
+UPDATE nodetemplatestate SET state = 0 WHERE state IS NULL;
ALTER TABLE nodetemplatestate
ALTER COLUMN nodeTemplate_name SET NOT NULL,
* ============LICENSE_END=========================================================
*/
-update participantreplica set lastMsg = now() where lastMsg is null;
-update participantreplica set participantState = '1' where participantState is null;
+UPDATE participantreplica SET lastMsg = now() WHERE lastMsg IS NULL;
+UPDATE participantreplica SET participantState = '1' WHERE participantState IS NULL;
ALTER TABLE participantreplica
ALTER COLUMN lastMsg SET NOT NULL,
* ============LICENSE_END=========================================================
*/
-update participantsupportedacelements set typeName = '' where typeName is null;
-update participantsupportedacelements set typeVersion = '1.0.0' where typeVersion is null;
+UPDATE participantsupportedacelements SET typeName = '' WHERE typeName IS NULL;
+UPDATE participantsupportedacelements SET typeVersion = '1.0.0' WHERE typeVersion IS NULL;
ALTER TABLE participantsupportedacelements
ALTER COLUMN participantId SET NOT NULL,