/**Begin D:\work\PDM\PDM_UPGRADE_1224\PDM1\BRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BRM_EXELOG', 'T_BRM_EXELOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BRM_EXELOG') CREATE INDEX IDX_BRM_EXELOG ON T_BRM_EXELOG ( FEXESTARTTIME  DESC );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BRM_EXELOG_BIZAPP') CREATE INDEX IDX_BRM_EXELOG_BIZAPP ON T_BRM_EXELOG ( FBIZAPP );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BRM_EXELOG_SCENE') CREATE INDEX IDX_BRM_EXELOG_SCENE ON T_BRM_EXELOG ( FSCENENAME );



/**End D:\work\PDM\PDM_UPGRADE_1224\PDM1\BRM_constraint.sql **/
