Skip to content

Commit

Permalink
indexer: revert migration 10 changes and add dummy migration 11
Browse files Browse the repository at this point in the history
Revert "indexer: don't drop start_block, end_block, block_count in migration 10"

This reverts commit c97e244.
  • Loading branch information
altergui authored and p4u committed Apr 23, 2024
1 parent 704c951 commit 974089f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vochain/indexer/migrations/0010_processes_manually_ended.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ ADD COLUMN manually_ended BOOLEAN NOT NULL DEFAULT FALSE;

UPDATE processes
SET manually_ended = end_block < (start_block+block_count);

ALTER TABLE processes DROP COLUMN start_block;
ALTER TABLE processes DROP COLUMN end_block;
ALTER TABLE processes DROP COLUMN block_count;
5 changes: 5 additions & 0 deletions vochain/indexer/migrations/0011_drop_deprecated_columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +goose Up
-- intentionally does nothing, columns were already dropped in migration 10

-- This is a no-op command in SQLite, used just to have a valid SQL statement.
SELECT 1;

0 comments on commit 974089f

Please sign in to comment.