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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_BILL_LOG_BILLNO') CREATE INDEX IDX_SIM_BILL_LOG_BILLNO ON T_SIM_BILL_PROCESS_LOG ( FBILLNO );

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_BILL_LOG_INVOICEKEY') CREATE INDEX IDX_SIM_BILL_LOG_INVOICEKEY ON T_SIM_BILL_PROCESS_LOG ( FINVOICEKEY );



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