/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_BAS_REPORT_FILES_PATH', 'T_BAS_REPORT_FILES_PATH', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BAS_REPORT_FILES_PATH' AND KSQL_INDNAME = 'IDX_REPORT_PATH_FCREATETIME') CREATE INDEX IDX_REPORT_PATH_FCREATETIME ON T_BAS_REPORT_FILES_PATH ( FCREATETIME );


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