/**Begin D:\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_RPASCHEME', 'T_BCM_RPASCHEME', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_RPASCHEME') CREATE INDEX IDX_BCM_RPASCHEME ON T_BCM_RPASCHEME ( FMODELID ,FSCHEMEID );


 EXEC P_ALTERPK 'PK_T_BCM_RPASCHEME_L', 'T_BCM_RPASCHEME_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_ISEXCEIIMPORT', 'T_BCM_ISEXCEIIMPORT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ISEXCIMPT') CREATE INDEX IDX_BCM_ISEXCIMPT ON T_BCM_ISEXCEIIMPORT ( FMODELID ,FTEMPLATEID );


 EXEC P_ALTERPK 'PK_T_BCM_ISSHEETMAPPING', 'T_BCM_ISSHEETMAPPING', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ISSHEETMAP') CREATE INDEX IDX_BCM_ISSHEETMAP ON T_BCM_ISSHEETMAPPING ( FSCHEMEID );


 EXEC P_ALTERPK 'PK_T_BCM_ISCELLMAPPINGDATA', 'T_BCM_ISCELLMAPPINGDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ISCELLMAP') CREATE INDEX IDX_BCM_ISCELLMAP ON T_BCM_ISCELLMAPPINGDATA ( FSHEETMAPPINGID ,FSCHEMEID );



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