/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_DYNAMICLIST', 'T_BCM_DYNAMICLIST', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_MEMBERLIST', 'T_BCM_MEMBERLIST', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_MEMBERLIS_MODEL_DIM') CREATE INDEX IDX_BCM_MEMBERLIS_MODEL_DIM ON T_BCM_MEMBERLIST ( FMODELID ,FDIMENSIONID );


 EXEC P_ALTERPK 'PK_T_BCM_MEMBERLIST_L', 'T_BCM_MEMBERLIST_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_STATICLIST', 'T_BCM_STATICLIST', 'FENTRYID', '1';

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



/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
