Skip to content

Commit

Permalink
Merge branch 'support-metrics' of github.com:ooni/backend into suppor…
Browse files Browse the repository at this point in the history
…t-metrics

* 'support-metrics' of github.com:ooni/backend:
  OONI Run v2 DB Migration (#819)
  • Loading branch information
hellais committed Mar 13, 2024
2 parents 5d110f2 + f7aafc9 commit e5ac5cd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ def upgrade() -> None:
server_default=sa.text("false"),
),
sa.PrimaryKeyConstraint("oonirun_link_id", "revision", "nettest_index"),
sa.ForeignKeyConstraint(["oonirun_link_id"], ["oonirun.oonirun_link_id"]),
sa.ForeignKeyConstraint(
["oonirun_link_id"],
["oonirun.oonirun_link_id"],
),
)


def downgrade() -> None:
op.drop_table("oonirun_nettest")
op.drop_table("oonirun")
op.drop_table("oonirun")

0 comments on commit e5ac5cd

Please sign in to comment.