ALTER TABLE ensembles ALTER COLUMN runtype SET NOT NULL,
ADD CONSTRAINT valid_ensemble_runtype CHECK (runtype IN ('ensemble', 'sensitivity analysis', 'MCMC', 'pda.emulator'));
To drop the table:
ALTER TABLE ensembles DROP CONSTRAINT valid_ensemble_runtype;
This constraint should be removed:
To drop the table: