/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LOG_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_LOG_FAILRECORD', 'T_LOG_FAILRECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LOG_FAILRECORD_CREATETIME') CREATE INDEX IX_LOG_FAILRECORD_CREATETIME ON T_LOG_FAILRECORD ( FCREATETIME );


 EXEC P_ALTERPK 'PK_T_LOG_INDEX', 'T_LOG_INDEX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IX_LOG_INDEX_NAME') CREATE INDEX IX_LOG_INDEX_NAME ON T_LOG_INDEX ( FNAME );
 
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LOG_constraint.sql **/
