/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BDM_AUTO_TASK', 'T_BDM_AUTO_TASK', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_AUTO_TASK') CREATE  CLUSTERED INDEX IDX_BDM_AUTO_TASK ON T_BDM_AUTO_TASK ( FENABLE ,FORGID );


 EXEC P_ALTERPK 'PK_T_BDM_AUTO_TASK_L', 'T_BDM_AUTO_TASK_L', 'FPKID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_AUTO_TASK_L') CREATE  CLUSTERED INDEX IDX_BDM_AUTO_TASK_L ON T_BDM_AUTO_TASK_L ( FID );



/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_constraint.sql **/
