diff --git a/migration/353a-trunk/postgresql/400_FR2523861_Value_column_in_U_POSTerminal.sql b/migration/353a-trunk/postgresql/400_FR2523861_Value_column_in_U_POSTerminal.sql index 8857a679d9..afc8c2c40a 100644 --- a/migration/353a-trunk/postgresql/400_FR2523861_Value_column_in_U_POSTerminal.sql +++ b/migration/353a-trunk/postgresql/400_FR2523861_Value_column_in_U_POSTerminal.sql @@ -3,7 +3,7 @@ ADD COLUMN Value VARCHAR(40) ; UPDATE U_POSTerminal - Set Value = nextidfunc( (SELECT AD_Sequence_ID FROM AD_Sequence WHERE AD_Client_ID = 0 AND Name = 'U_POSTerminal'), 'N') + Set Value = nextidfunc( (SELECT AD_Sequence_ID FROM AD_Sequence WHERE AD_Client_ID = 0 AND Name = 'U_POSTerminal')::integer, 'N'::varchar) WHERE U_POSTerminal.Value IS NULL AND U_POSTerminal.AD_Client_ID = 11 ;