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

@ -9,11 +9,31 @@
#) #)
#SELECT #SELECT
# e.name as entity_type, # e.name as entity_type,
# CONCAT(prop.client_id, "_", prop.entity_id) AS entity_value, # CONCAT(prop.client_id, "_", prop.entity_id) AS entity_value,
# p.name AS property_type, # p.name AS property_type,
# prop.property_value, # prop.property_value,
# prop.is_active # prop.is_active
#FROM propertiesV1 prop, #FROM propertiesV1 prop,
# 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
);