/**Begin D:\PDM_UPGRADE\PDM1\HAOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HAOS_SYNCORGFAILLOG', 'T_HAOS_SYNCORGFAILLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_SYNCORGFAILLOG') CREATE INDEX IDX_HAOS_SYNCORGFAILLOG ON T_HAOS_SYNCORGFAILLOG ( FADMINORGID );


 EXEC P_ALTERPK 'PK_HAOS_SYNCORGLOG', 'T_HAOS_SYNCORGLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_SYNCORGLOG') CREATE INDEX IDX_HAOS_SYNCORGLOG ON T_HAOS_SYNCORGLOG ( FADMINORGID );



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