During migration from v 2.1 to version 3.1 while executing i2.1.z postgres sql script it throwing following error. There is not dual statement in postgresql.
Please suggest.
SELECT register_migration_script('201411061604_IDEMPIERE-2230.sql') FROM dual
;
psql:i2.1z/postgresql/201411061604_IDEMPIERE-2230.sql:61: ERROR: function uuid_generate_v4() does not exist
LINE 1: SELECT uuid_generate_v4()::char(36)
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT uuid_generate_v4()::char(36)
CONTEXT: PL/pgSQL function generate_uuid() line 3 at RETURN
SQL statement "INSERT INTO ad_migrationscript
(isapply, scriptroll, ad_migrationscript_uu,
status, projectname, releaseno,
name, filename, ad_client_id,
ad_org_id, created, createdby,
updated, updatedby, isactive,
ad_migrationscript_id)
VALUES
('Y', 'N', generate_uuid(),
'CO', 'iDempiere', (select releaseno from ad_system),
p_script, 'postgresql/'||p_script, 0,
0, now(), 100,
now(), 100, 'Y',
nextidfunc(53081,'N'))"
PL/pgSQL function register_migration_script(character varying) line 17 at SQL statement