Skip to content

Commit

Permalink
Updated database schema (Ordered the commands).
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRoeder committed Mar 17, 2017
1 parent 01a3177 commit 9d6a7e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ CREATE TABLE IF NOT EXISTS Experiments (
PRIMARY KEY (id, taskId)
);

-- 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='';
DROP INDEX IF EXISTS ExperimentTaskConfig;
CREATE INDEX ExperimentTaskConfig ON ExperimentTasks (matching,experimentType,annotatorName,datasetName,language);

Expand All @@ -46,7 +50,3 @@ subTaskId int NOT NULL,
PRIMARY KEY (taskId, subTaskId)
);

-- 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='';
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ fi

echo "Building and starting GERBIL QA..."
#mvn clean tomcat:run -Dmaven.tomcat.port=1234
mvn clean org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run -Dmaven.tomcat.port=1234
mvn clean org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run -Dmaven.tomcat.port=5004

0 comments on commit 9d6a7e7

Please sign in to comment.