/**Begin D:\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SIM_FAIL_AUTO_ISSUE', 'T_SIM_FAIL_AUTO_ISSUE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FAIL_AUTO_ISSUE_CREATEDATE') CREATE  CLUSTERED INDEX IDX_FAIL_AUTO_ISSUE_CREATEDATE ON T_SIM_FAIL_AUTO_ISSUE ( FCREATEDATE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FAIL_AUTO_ISSUE_ORDERNO') CREATE INDEX IDX_FAIL_AUTO_ISSUE_ORDERNO ON T_SIM_FAIL_AUTO_ISSUE ( FORDERNO );



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