core-jgi/migration-historic/360lts-i1.0a/postgresql/874_IDEMPIERE-384.sql

14 lines
405 B
MySQL
Raw Normal View History

-- IDEMPIERE-384 Problem with insertTranslations in multilanguage env caused by Generate_UUID
CREATE OR REPLACE FUNCTION generate_uuid()
RETURNS char(36) AS $$
BEGIN
return uuid_generate_v4()::char(36);
END;
$$ LANGUAGE plpgsql;
UPDATE AD_System
SET LastMigrationScriptApplied='874_IDEMPIERE-384.sql'
WHERE LastMigrationScriptApplied<'874_IDEMPIERE-384.sql'
OR LastMigrationScriptApplied IS NULL
;