/**Begin D:\PDM_UPGRADE\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_CHECKTMPLPERIOD', 'T_BCM_CHECKTMPLPERIOD', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_BCM_STRUCTOFACCOUNT_S', 'T_BCM_STRUCTOFACCOUNT_S', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_STOFACCOUNT_S_TABLE') CREATE INDEX IDX_BCM_STOFACCOUNT_S_TABLE ON T_BCM_STRUCTOFACCOUNT_S ( FACCTTABLEID );


 EXEC P_ALTERPK 'PK_T_BCM_TMPLCOLDIM_L', 'T_BCM_TMPLCOLDIM_L', 'FPKID', '1';

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



/**End D:\PDM_UPGRADE\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
