Skip to content

prep_template with only sample_name fails #1195

@antgonza

Description

@antgonza

If you try to add a prep template with only sample_name (minimal information needed for a prep template) the add fails with:

QiitaDBExecutionError: 
Error running SQL query in queue CREATE_PREP_TEMPLATE_296: CREATE TABLE qiita.prep_368 (sample_id varchar NOT NULL, , CONSTRAINT fk_prep_368 FOREIGN KEY (sample_id) REFERENCES qiita.study_sample (sample_id) ON UPDATE CASCADE)
ARGS: None
Error: syntax error at or near ","
LINE 1: ...TABLE qiita.prep_368 (sample_id varchar NOT NULL, , CONSTRAI...

The current solution is to add a prep_template with 2 columns.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions