/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCCIT_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCCIT_SEASONAL_DG_BILL', 'T_TCCIT_SEASONAL_DG_BILL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_YEAR_DG_BILL', 'T_TCCIT_YEAR_DG_BILL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_TCCIT_SEASONAL_CALC_DET', 'T_TCCIT_SEASONAL_CALC_DET', 'FID', '1';

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



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