/**Begin D:\develop\ws\pdm\repo_new\TSRBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_TSRBD_CFGMSGCHANNEL', 'T_TSRBD_CFGMSGCHANNEL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_CFGMSGCHANNEL') CREATE INDEX IDX_TSRBD_CFGMSGCHANNEL ON T_TSRBD_CFGMSGCHANNEL ( FCHANNELID );


 EXEC P_ALTERPK 'PK_TSRBD_CFGMSGENTRY', 'T_TSRBD_CFGMSGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_CHANNELENTRY') CREATE INDEX IDX_TSRBD_CHANNELENTRY ON T_TSRBD_CFGMSGENTRY ( FID );


 EXEC P_ALTERPK 'PK_TSRBD_MSGINST', 'T_TSRBD_MSGINST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TSRBD_MSGINST') CREATE INDEX IDX_TSRBD_MSGINST ON T_TSRBD_MSGINST ( FTEMPLATEID );



/**End D:\develop\ws\pdm\repo_new\TSRBD_constraint.sql **/
