/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_AIMAPPINGOPTION', 'T_BCM_AIMAPPINGOPTION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_AIMAPPINGOPTION' AND KSQL_INDNAME = 'IDX_BCM_AIMAPPINGOPTION') CREATE INDEX IDX_BCM_AIMAPPINGOPTION ON T_BCM_AIMAPPINGOPTION ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_AIMAPPINGOPTION_L', 'T_BCM_AIMAPPINGOPTION_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_AIMAPPINGOPTION_L' AND KSQL_INDNAME = 'IDX_BCM_AIMAPPINGOPTION_L') CREATE INDEX IDX_BCM_AIMAPPINGOPTION_L ON T_BCM_AIMAPPINGOPTION_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_BCM_AIMAPPINGSETTING', 'T_BCM_AIMAPPINGSETTING', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BCM_AIMAPPINGSETTING' AND KSQL_INDNAME = 'IDX_BCM_AIMAPPINGSETTING') CREATE INDEX IDX_BCM_AIMAPPINGSETTING ON T_BCM_AIMAPPINGSETTING ( FSCHEMEID );



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