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

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

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



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