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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_STAFFCASE') CREATE INDEX IDX_HAOS_STAFFCASE ON T_HAOS_STAFFCASE ( FPERSONNELID );


 EXEC P_ALTERPK 'PK_HAOS_STAFFCASE_L', 'T_HAOS_STAFFCASE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_STAFFCASE_L') CREATE INDEX IDX_HAOS_STAFFCASE_L ON T_HAOS_STAFFCASE_L ( FLOCALEID );



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