Skip to content

Commit

Permalink
[db_schema] Adjust schema migration to support v.22+ of cockroachdb
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Aug 23, 2024
1 parent 915d45b commit c403a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/db_schemas/rid/upto-v2.0.0-add_inverted_indices.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- From version 22.2.0, cockroach db sets the following variable to true by default.
-- This is reverted to preserve the original behaviour.
SET enable_implicit_transaction_for_batch_statements = false;

-- Add inverted indices
ALTER TABLE identification_service_areas ADD COLUMN IF NOT EXISTS cells INT64[];
CREATE INVERTED INDEX IF NOT EXISTS cell_idx on identification_service_areas (cells);
Expand Down

0 comments on commit c403a0a

Please sign in to comment.