/**Begin D:\PDM_UPGRADE\PDM1\MAL_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_MAL_ORDER_ZKH', 'T_MAL_ORDER_ZKH', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_ORDER_ZKH_FORDERID') CREATE INDEX IDX_MAL_ORDER_ZKH_FORDERID ON T_MAL_ORDER_ZKH ( FORDERID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_ORDER_ZKH_FPORDERID') CREATE INDEX IDX_MAL_ORDER_ZKH_FPORDERID ON T_MAL_ORDER_ZKH ( FPORDERID );


 EXEC P_ALTERPK 'PK_T_MAL_ORDERENTRY_ZKH', 'T_MAL_ORDERENTRY_ZKH', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_ENTRY_ZKH_FGOODSID') CREATE INDEX IDX_MAL_ENTRY_ZKH_FGOODSID ON T_MAL_ORDERENTRY_ZKH ( FGOODSID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MAL_ENTRY_ZKH_FID_FSEQ') CREATE INDEX IDX_MAL_ENTRY_ZKH_FID_FSEQ ON T_MAL_ORDERENTRY_ZKH ( FID ,FSEQ );



/**End D:\PDM_UPGRADE\PDM1\MAL_constraint.sql **/
