/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_DSMAINDATA', 'T_BCM_DSMAINDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_DSMAINDATA_NUMBER') CREATE INDEX IDX_BCM_DSMAINDATA_NUMBER ON T_BCM_DSMAINDATA ( FDIMENSION );


 EXEC P_ALTERPK 'PK_T_BCM_DSMAINDATA_L', 'T_BCM_DSMAINDATA_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_DSMAINDATA_L') CREATE INDEX IDX_BCM_DSMAINDATA_L ON T_BCM_DSMAINDATA_L ( FID ,FLOCALEID );



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