Skip to content

Commit 7592408

Browse files
committed
raw_data_id can be now nullable - prep template with no raw data attached
1 parent 6021c03 commit 7592408

File tree

1 file changed

+4
-0
lines changed
  • qiita_db/support_files/patches/python_patches

1 file changed

+4
-0
lines changed

qiita_db/support_files/patches/python_patches/25.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
9494
--- Drop the study_raw__data table as it's not longer used
9595
DROP TABLE qiita.study_raw_data;
96+
97+
-- The raw_data_id column now can be nullable
98+
ALTER TABLE qiita.prep_template
99+
ALTER COLUMN raw_data_id DROP NOT NULL;
96100
"""
97101
conn_handler.add_to_queue(queue, sql)
98102
conn_handler.execute_queue(queue)

0 commit comments

Comments
 (0)