From 099383f06f45a8960926da778bf3bd2961fc84fc Mon Sep 17 00:00:00 2001 From: TortugaAttack Date: Fri, 17 Mar 2017 11:33:40 +0100 Subject: [PATCH] update sql where language is null not empty string --- src/main/resources/spring/database/schema/experiment-schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/spring/database/schema/experiment-schema.sql b/src/main/resources/spring/database/schema/experiment-schema.sql index c7eef6cfb..bf8512a36 100644 --- a/src/main/resources/spring/database/schema/experiment-schema.sql +++ b/src/main/resources/spring/database/schema/experiment-schema.sql @@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS Experiments ( -- Changes from GERBIL QA 0.1.0 to 0.2.0 -- (ALTER should be executed only once for updating old DBs -- ALTER TABLE ExperimentTasks ADD COLUMN language varchar(3); -UPDATE ExperimentTasks SET language='en' WHERE language=''; +UPDATE ExperimentTasks SET language='en' WHERE language IS NULL; DROP INDEX IF EXISTS ExperimentTaskConfig; CREATE INDEX ExperimentTaskConfig ON ExperimentTasks (matching,experimentType,annotatorName,datasetName,language);