/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\SIM_constraint.sql **/
 EXEC p_AlterPK 'PK_T_SIM_VATINVOICE_WF_ITEM', 'T_SIM_VATINVOICE_WF_ITEM', 'FENTRYID', '1';
EXEC p_DropIdx 'IDX_SIM_VATINVOICE_WF_ITEM', 'T_SIM_VATINVOICE_WF_ITEM';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SIM_VATINVOICE_WF_ITEM') CREATE INDEX IDX_SIM_VATINVOICE_WF_ITEM ON T_SIM_VATINVOICE_WF_ITEM ( FINVOICECODE ,FINVOICENO );


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