/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_DEPRECIATION_DET', 'T_TCCIT_DEPRECIATION_DET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRECIATION_DET_ORG') CREATE INDEX IDX_TCCIT_DEPRECIATION_DET_ORG ON T_TCCIT_DEPRECIATION_DET ( FORGID ,FSKSSQQ ,FSKSSQZ ,FRULEID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_DEPRE_DET_TAXORG') CREATE INDEX IDX_TCCIT_DEPRE_DET_TAXORG ON T_TCCIT_DEPRECIATION_DET ( FTAXORGID ,FSKSSQQ ,FSKSSQZ ,FRULEID );


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
