gotelem/migrations/6_bus_index_column_up.sql

2 lines
99 B
SQL

ALTER TABLE "bus_events" ADD COLUMN idx GENERATED ALWAYS AS (json_extract(data, '$.idx')) VIRTUAL;