 EXEC P_ALTERPK 'PK_T_SVC_CUSTOMPARAM_APP', 'T_SVC_CUSTOMPARAM_APP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CUSTOMPARAM_APP_N') CREATE UNIQUE INDEX IDX_CUSTOMPARAM_APP_N ON T_SVC_CUSTOMPARAM_APP ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_SVC_CUSTOMPARAM_APP_L', 'T_SVC_CUSTOMPARAM_APP_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CUSTOMPARAM_APP_L_N') CREATE UNIQUE INDEX IDX_CUSTOMPARAM_APP_L_N ON T_SVC_CUSTOMPARAM_APP_L ( FID ,FLOCALEID );
