Skip to content

Commit

Permalink
fix(db): drop constraint prover_jobs_fri_l1_batch_number_fkey (#173)
Browse files Browse the repository at this point in the history
# What ❔

`prover_jobs_fri_l1_batch_number_fkey` is dropped.

## Why ❔

`prover_jobs_fri` is filled only in prover DB, while `l1_batches` --
only in core DB, so we can't have the constraint.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
perekopskiy authored Oct 9, 2023
1 parent 99b8aad commit fa71650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE prover_jobs_fri ADD CONSTRAINT prover_jobs_fri_l1_batch_number_fkey
FOREIGN KEY (l1_batch_number) REFERENCES l1_batches (number);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE prover_jobs_fri DROP CONSTRAINT IF EXISTS prover_jobs_fri_l1_batch_number_fkey;

0 comments on commit fa71650

Please sign in to comment.