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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCCIT_BRANCH_SHARE') CREATE INDEX IDX_TCCIT_BRANCH_SHARE ON T_TCCIT_BRANCH_SHARE ( FORGID ,FPERIOD );


 EXEC P_ALTERPK 'PK_TCCIT_BRANCH_SHARE_DET', 'T_TCCIT_BRANCH_SHARE_DET', 'FID', '1';

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



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