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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_TEMPLATE_BASEMEMBER') CREATE INDEX IDX_BCM_TEMPLATE_BASEMEMBER ON T_BCM_TEMPLATE_BASEMEMBER ( FMODELID );


 EXEC P_ALTERPK 'PK_T_BCM_TEMPLATE_AREAMEMBER', 'T_BCM_TEMPLATE_AREAMEMBER', 'FENTRYID', '1';

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



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