/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\TCTB_constraint.sql **/
 EXEC p_AlterPK 'PK_T_TCTB_ORG_GROUP_L', 'T_TCTB_ORG_GROUP_L', 'FPKID', '0';
EXEC p_DropIdx 'IDX_T_TCTB_ORG_GROUP_L', 'T_TCTB_ORG_GROUP_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TCTB_ORG_GROUP_L') CREATE  CLUSTERED INDEX IDX_T_TCTB_ORG_GROUP_L ON T_TCTB_ORG_GROUP_L ( FID );

 EXEC P_ALTERPK 'PK_TCTB_BANK_INFO', 'T_TCTB_BANK_INFO', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TCTB_BANK_INFO') CREATE  CLUSTERED INDEX IDX_T_TCTB_BANK_INFO ON T_TCTB_BANK_INFO ( FORGID );


 EXEC P_ALTERPK 'PK_TCTB_BANK_INFO_DETAIL', 'T_TCTB_BANK_INFO_DETAIL', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_BANK_INFO_DETAIL_FK') CREATE  CLUSTERED INDEX IDX_TCTB_BANK_INFO_DETAIL_FK ON T_TCTB_BANK_INFO_DETAIL ( FID );


 EXEC P_ALTERPK 'PK_TCTB_SHAREHOLDER', 'T_TCTB_SHAREHOLDER', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_TCTB_SHAREHOLDER') CREATE  CLUSTERED INDEX IDX_T_TCTB_SHAREHOLDER ON T_TCTB_SHAREHOLDER ( FORGID );


 EXEC P_ALTERPK 'PK_TCTB_SHAREHOLDER_DETAIL', 'T_TCTB_SHAREHOLDER_DETAIL', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TCTB_SHAREHOLDER_DETAIL_FK') CREATE  CLUSTERED INDEX IDX_TCTB_SHAREHOLDER_DETAIL_FK ON T_TCTB_SHAREHOLDER_DETAIL ( FID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\TCTB_constraint.sql **/
