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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_VATINVOICE_FILE_ISSUETIME') CREATE  CLUSTERED INDEX IDX_VATINVOICE_FILE_ISSUETIME ON T_SIM_VATINVOICE_FILE ( FISSUETIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_VATINVOICE_FILE_INVOICENO') CREATE INDEX IDX_VATINVOICE_FILE_INVOICENO ON T_SIM_VATINVOICE_FILE ( FINVOICENO );



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