/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC p_AlterPK 'PK_TCCIT_DEPRECIATE_ORIGIN', 'T_TCCIT_DEPRECIATE_ORIGIN', 'fentryid', '1';
 EXEC p_AlterPK 'PK_TCCIT_PROFITS_ENTRY', 'T_TCCIT_PROFITS_ENTRY', 'fentryid', '1';
 EXEC P_ALTERPK 'PK_TCCIT_ZERORATINGIN_SUM', 'T_TCCIT_ZERORATINGIN_SUM', 'FID', '1';

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



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