/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BCM_constraint.sql **/
EXEC P_ALTERPK 'PK_T_BCM_SCHEMECOLLECTLOG', 'T_BCM_SCHEMECOLLECTLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_BCM_SCHEMECOLLECTLOG_DIMSTR') CREATE INDEX T_BCM_SCHEMECOLLECTLOG_DIMSTR ON T_BCM_SCHEMECOLLECTLOG ( FSCENARIOID, FYEARID, FPERIODID, FCURRENCYID );

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