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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LOG_METAOPERATE_OPTIME') CREATE INDEX IDX_LOG_METAOPERATE_OPTIME ON T_LOG_METAOPERATE ( FOPERATETIME );


 EXEC P_ALTERPK 'PK_T_LOG_METAVERSION', 'T_LOG_METAVERSION', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_LOG_METAVERSION_METAID') CREATE INDEX IDX_T_LOG_METAVERSION_METAID ON T_LOG_METAVERSION ( FMETAID );



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