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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_DIMSTAFFREPORT_STAFF') CREATE INDEX IDX_HAOS_DIMSTAFFREPORT_STAFF ON T_HAOS_DIMSTAFFREPORT ( FSTAFFID );


 EXEC P_ALTERPK 'PK_HAOS_ORGSTAFFREPORT', 'T_HAOS_ORGSTAFFREPORT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HAOS_ORGSTAFFREPORT_STAFF') CREATE INDEX IDX_HAOS_ORGSTAFFREPORT_STAFF ON T_HAOS_ORGSTAFFREPORT ( FSTAFFID );



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