/**Begin D:\PDM_UPGRADE\PDM1\BD_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BD_SCHEDULECONFIG', 'T_BD_SCHEDULECONFIG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_SCHECONFIG_FNUMBER') CREATE INDEX IDX_BD_SCHECONFIG_FNUMBER ON T_BD_SCHEDULECONFIG ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BD_SCHEDULECONFIG_L', 'T_BD_SCHEDULECONFIG_L', 'FPKID', '1';

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



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