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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOG_DEPLOY_FPKGID') CREATE INDEX IDX_LOG_DEPLOY_FPKGID ON T_LOG_DEPLOY ( FPACKAGEID ,FCATEGORY );


 EXEC P_ALTERPK 'PK_T_LOG_DEPLOY_HIS', 'T_LOG_DEPLOY_HIS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOG_DEPLOY_HIS_FPKGID') CREATE INDEX IDX_LOG_DEPLOY_HIS_FPKGID ON T_LOG_DEPLOY_HIS ( FPACKAGEID ,FCATEGORY );



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