Commit 984f64c2 authored by Leo Gordon's avatar Leo Gordon
Browse files

schema change to allow any short string for meadow_type

parent 519c6e33
-- Relax the meadow_type field to take any short string - to better support external Meadows:
ALTER TABLE worker MODIFY COLUMN meadow_type VARCHAR(40);
ALTER TABLE resource_description MODIFY COLUMN meadow_type VARCHAR(40);
......@@ -107,7 +107,7 @@ CREATE TABLE IF NOT EXISTS analysis_description (
CREATE TABLE worker (
worker_id int(10) unsigned NOT NULL AUTO_INCREMENT,
analysis_id int(10) unsigned NOT NULL,
meadow_type enum('LSF', 'LOCAL') NOT NULL,
meadow_type varchar(40) NOT NULL,
meadow_name varchar(40) DEFAULT NULL,
host varchar(40) DEFAULT NULL,
process_id varchar(40) DEFAULT NULL,
......@@ -331,7 +331,7 @@ CREATE TABLE analysis_data (
CREATE TABLE resource_description (
rc_id int(10) unsigned DEFAULT 0 NOT NULL,
meadow_type enum('LSF', 'LOCAL') DEFAULT 'LSF' NOT NULL,
meadow_type varchar(40) NOT NULL,
parameters varchar(255) DEFAULT '' NOT NULL,
description varchar(255),
PRIMARY KEY(rc_id, meadow_type)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment