/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LOG_constraint.sql **/
 EXEC P_ALTERPK 'PK_LOG_ETCONFIG', 'T_LOG_ETCONFIG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOG_ETCONFIG_CR') CREATE INDEX IDX_LOG_ETCONFIG_CR ON T_LOG_ETCONFIG ( FCREATORID );


 EXEC P_ALTERPK 'PK_LOG_ETCONFIGENTRY', 'T_LOG_ETCONFIGENTRY', 'FENTRYID', '1';

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



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