/**Begin D:\PDM_UPGRADE\PDM1\HAOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HAOS_STAFFORGPERMENTRY', 'T_HAOS_STAFFORGPERMENTRY', 'FENTRYID', '1';

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



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