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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_OTHER_DEDUCTIONS') CREATE INDEX IDX_TCCIT_OTHER_DEDUCTIONS ON T_TCCIT_OTHER_DEDUCTIONS ( FORGID ,FYEAR );


 EXEC P_ALTERPK 'PK_TCCIT_OTHER_DETENTRY', 'T_TCCIT_OTHER_DETENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_OTHER_DETENTRY_FK') CREATE INDEX IDX_TCCIT_OTHER_DETENTRY_FK ON T_TCCIT_OTHER_DETENTRY ( FID );


 EXEC P_ALTERPK 'PK_TCCIT_QYSDS_EXT', 'T_TCCIT_QYSDS_EXT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_QYSDS_EXT_SBBID') CREATE INDEX IDX_TCCIT_QYSDS_EXT_SBBID ON T_TCCIT_QYSDS_EXT ( FSBBID );



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