Skip to content

Commit

Permalink
Merge pull request #47 from martinghunt/bug_fix_long_seq_rep_numbers
Browse files Browse the repository at this point in the history
Bug fix long seq rep numbers
  • Loading branch information
martinghunt authored Aug 1, 2018
2 parents 19ccfc8 + 4b69ddf commit 365efc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions db_schema_patches/2_to_3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Updates schema from version 2 to version 3
ALTER TABLE Seqrep MODIFY sequence_replicate_number BIGINT UNSIGNED;
UPDATE Version SET version=3 WHERE version=2;

4 changes: 2 additions & 2 deletions python/clockwork/db_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 2
version = 3

tables = {
'Isolate': [
Expand Down Expand Up @@ -99,7 +99,7 @@
'Seqrep': [
('seqrep_id', 'integer'),
('isolate_id', 'integer'),
('sequence_replicate_number', 'integer'),
('sequence_replicate_number', 'bigint unsigned'),
('original_reads_file_1_md5', 'text'),
('original_reads_file_2_md5', 'text'),
('remove_contam_reads_file_1_md5', 'text'),
Expand Down

0 comments on commit 365efc2

Please sign in to comment.