Skip to content

Commit

Permalink
fix alembic script
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed May 15, 2024
1 parent 73aacca commit e56285b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
def upgrade():
op.create_table(
"illumina_sample_run_metrics",
sa.Column("id", sa.Integer(), nullable=False, primary_key=True),
sa.Column("id", sa.Integer(), sa.ForeignKey("sample_run_metrics.id"), primary_key=True),
sa.Column("flow_cell_lane", sa.Integer(), nullable=False),
sa.Column("reads_in_lane", sa.BigInteger(), nullable=False),
sa.Column("base_passing_q30_percent", sa.Float(), nullable=False),
sa.Column("base_mean_quality_score", sa.Float(), nullable=False),
sa.Column("base_passing_q30_percent", sa.Numeric(6, 2), nullable=False),
sa.Column("base_mean_quality_score", sa.Numeric(6, 2), nullable=False),
sa.Column("created_at", sa.DateTime(), nullable=False),
)

Expand Down
2 changes: 1 addition & 1 deletion cg/store/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ class SampleRunMetrics(Base):
class IlluminaSampleRunMetrics(SampleRunMetrics):
__tablename__ = "illumina_sample_run_metrics"

id: Mapped[int] = mapped_column(ForeignKey(SampleRunMetrics.id))
id: Mapped[int] = mapped_column(ForeignKey(SampleRunMetrics.id), primary_key=True)
flow_cell_lane_number: Mapped[int | None]
sample_total_reads_in_lane: Mapped[BigInt | None]
sample_base_percentage_passing_q30: Mapped[Num_6_2 | None]
Expand Down

0 comments on commit e56285b

Please sign in to comment.