/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_EXTENDSYNLOG', 'T_BCM_EXTENDSYNLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_EXTENDSYNLOG_DATA') CREATE INDEX IDX_BCM_EXTENDSYNLOG_DATA ON T_BCM_EXTENDSYNLOG ( FMODELID ,FEXTENDDATAID );

 EXEC P_ALTERPK 'PK_T_BCM_EXTENDDATASUM', 'T_BCM_EXTENDDATASUM', 'FENTRYID', '1';

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



/**End D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
