/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_BD_ADMINDIVISIONLOG', 'T_BD_ADMINDIVISIONLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_ADMINLOG_PRESET') CREATE INDEX IDX_BD_ADMINLOG_PRESET ON T_BD_ADMINDIVISIONLOG ( FPRESETLOGID );


 EXEC P_ALTERPK 'PK_BD_PRESET_LOG', 'T_BD_PRESET_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_PRESET_LOG_VERSION') CREATE INDEX IDX_BD_PRESET_LOG_VERSION ON T_BD_PRESET_LOG ( FVERSIONID );



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