
EXEC P_ALTERPK 'PK_T_INT_WORKINGPLAN_L', 'T_INT_WORKINGPLAN_L', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_T_INT_WORKINGPLANHOURS_L', 'T_INT_WORKINGPLANHOURS_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_INT_WORKINGPLH_L') CREATE INDEX IDX_T_INT_WORKINGPLH_L ON T_INT_WORKINGPLANHOURS_L ( FENTRYID );


EXEC P_ALTERPK 'PK_T_INT_WORKINGTIME_L', 'T_INT_WORKINGTIME_L', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_T_INT_HOLIDAYRANGE_L', 'T_INT_HOLIDAYRANGE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_INT_HOLIDAYRANGE_L') CREATE INDEX IDX_T_INT_HOLIDAYRANGE_L ON T_INT_HOLIDAYRANGE_L ( FENTRYID );


EXEC P_ALTERPK 'PK_T_INT_WORKINGHOURS_L', 'T_INT_WORKINGHOURS_L', 'FPKID', '1';

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