Skip to content

Commit

Permalink
Merge pull request #302 from sanger/301-add-a-new-sequence-and-prefix…
Browse files Browse the repository at this point in the history
…-for-pam

301 add a new sequence and prefix for pam
  • Loading branch information
enegoktan authored Oct 24, 2022
2 parents 8e33783 + b8cef4e commit 7de828d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions baracoda/config/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@
"formatter_class": GenericBarcodeFormatter,
"enableChildrenCreation": False,
},
{
"prefix": "PAM",
"sequence_name": "pam",
"formatter_class": GenericBarcodeFormatter,
"enableChildrenCreation": False,
},
{
"prefix": "HT",
"sequence_name": "ht",
Expand Down
4 changes: 4 additions & 0 deletions baracoda/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ DROP SEQUENCE IF EXISTS csm;
CREATE SEQUENCE csm
START 111111;

DROP SEQUENCE IF EXISTS pam;
CREATE SEQUENCE pam
START 111111;

DROP TABLE IF EXISTS barcodes;
CREATE TABLE barcodes
(
Expand Down
1 change: 1 addition & 0 deletions baracoda/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
{ "prefix": "WAHH", "sequence_name": "heron" },
{ "prefix": "WSFT", "sequence_name": "heron" },
{ "prefix": "COS", "sequence_name": "csm"},
{ "prefix": "PAM", "sequence_name": "pam"},
{ "prefix": "HT", "sequence_name": "ht" }
]

Expand Down
23 changes: 23 additions & 0 deletions migrations/versions/db39b037a71d_add_pam_sequence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""add_pam_sequence
Revision ID: db39b037a71d
Revises: bcd74f0a02ea
Create Date: 2022-10-21 14:45:22.805527
"""
from alembic import op


# revision identifiers, used by Alembic.
revision = "db39b037a71d"
down_revision = "bcd74f0a02ea"
branch_labels = None
depends_on = None


def upgrade():
op.execute("CREATE SEQUENCE pam START 111111;")


def downgrade():
op.execute("DROP SEQUENCE IF EXISTS pam;")

0 comments on commit 7de828d

Please sign in to comment.