@@ -143,7 +143,7 @@ AS $$
143143
144144 -- update the config and migrate (even if empty)
145145 UPDATE public .eql_v2_configuration SET data = _config WHERE state = ' pending' ;
146-
146+
147147 IF NOT migrating THEN
148148 PERFORM eql_v2 .migrate_config ();
149149 PERFORM eql_v2 .activate_config ();
@@ -158,6 +158,7 @@ $$ LANGUAGE plpgsql;
158158-- !
159159-- ! Updates an existing search index configuration by removing and re-adding it
160160-- ! with new options. Convenience function that combines remove and add operations.
161+ -- ! If index does not exist, it is added.
161162-- !
162163-- ! @param table_name Text Name of the table containing the column
163164-- ! @param column_name Text Name of the column
@@ -166,7 +167,6 @@ $$ LANGUAGE plpgsql;
166167-- ! @param opts JSONB New index-specific options (default: '{}')
167168-- ! @param migrating Boolean Skip auto-migration if true (default: false)
168169-- ! @return JSONB Updated configuration object
169- -- ! @throws Exception if index does not exist
170170-- !
171171-- ! @example
172172-- ! -- Change match index tokenizer settings
@@ -409,7 +409,7 @@ AS $$
409409
410410 -- update the config (even if empty) and activate
411411 UPDATE public .eql_v2_configuration SET data = _config WHERE state = ' pending' ;
412-
412+
413413 IF NOT migrating THEN
414414 -- For empty configs, skip migration validation and directly activate
415415 IF _config # > array['tables'] = '{}' THEN
0 commit comments