/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_AUTO_DEDUCT_USERORG', 'T_RIM_AUTO_DEDUCT_USERORG', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_AUTO_DEDUCT_USERORG_FK') CREATE  CLUSTERED INDEX IDX_RIM_AUTO_DEDUCT_USERORG_FK ON T_RIM_AUTO_DEDUCT_USERORG ( FID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_ADEDUCT_ORG_TAXNO') CREATE INDEX IDX_RIM_ADEDUCT_ORG_TAXNO ON T_RIM_AUTO_DEDUCT_USERORG ( FTAXPAYER_TAX_NO );



/**End D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
