Seed PROD_KAFKA_TOPIC_VERSION_SETTING property for eventManagerServiceV2

INSERT IGNORE ensures idempotency on re-deploy (PK: entity_type, entity_value, property_type).
Required by eventManagerServiceV2 at startup for TopicSettingServlet.refreshTopicSettings().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sagar Patil 2026-03-19 20:28:29 +05:30
parent 6e59dcdbe7
commit 7cbda21fb6

View File

@ -17,3 +17,23 @@
# property_types p, entity_types e # property_types p, entity_types e
#WHERE #WHERE
# prop.property_type_id = p.id AND prop.entity_type_id = e.id; # prop.property_type_id = p.id AND prop.entity_type_id = e.id;
use property_settings_db_v2;
-- Seed default Kafka topic version setting (required by eventManagerServiceV2)
INSERT IGNORE INTO properties
(
entity_type,
entity_value,
property_type,
property_value,
is_active
)
VALUES
(
'AGENCY',
'ALL',
'PROD_KAFKA_TOPIC_VERSION_SETTING',
'{}',
1
);