gotelem/migrations/6_bus_index_column_up.sql

2 lines
99 B
MySQL
Raw Normal View History

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