IDEMPIERE-99 01_add_missing_Translations.sql does not create UUIDs (#2570)

This commit is contained in:
Carlos Ruiz 2024-11-30 14:12:04 +01:00
parent 36c08e7476
commit e34371db60
2 changed files with 9 additions and 5 deletions

View File

@ -32,12 +32,14 @@ BEGIN
ins :=
'INSERT INTO '
|| t.tablename
|| '_TRL ('
|| '_Trl ('
|| 'ad_language,ad_client_id,ad_org_id,created,createdby,updated,updatedby,isactive,istranslated,'
|| t.tablename
|| '_Trl_UU,'
|| t.tablename
|| suffix;
sel :=
'SELECT l.ad_language,t.ad_client_id,t.ad_org_id,t.created,t.createdby,t.updated,t.updatedby,t.isactive,''N'' as istranslated,'
'SELECT l.ad_language,t.ad_client_id,t.ad_org_id,SYSDATE,10,SYSDATE,10,t.isactive,''N'' as istranslated,generate_uuid(),'
|| t.tablename
|| suffix;
@ -65,7 +67,7 @@ BEGIN
|| t.tablename
|| ' t, ad_language l WHERE l.issystemlanguage=''Y'' AND NOT EXISTS (SELECT 1 FROM '
|| t.tablename
|| '_TRL b WHERE b.'
|| '_Trl b WHERE b.'
|| t.tablename
|| suffix || '=t.'
|| t.tablename

View File

@ -28,12 +28,14 @@ BEGIN
ins :=
'INSERT INTO '
|| t.tablename
|| '_TRL ('
|| '_Trl ('
|| 'ad_language,ad_client_id,ad_org_id,created,createdby,updated,updatedby,isactive,istranslated,'
|| t.tablename
|| '_Trl_UU,'
|| t.tablename
|| suffix;
sel :=
'SELECT l.ad_language,t.ad_client_id,t.ad_org_id,t.created,t.createdby,t.updated,t.updatedby,t.isactive,''N'' as istranslated,'
'SELECT l.ad_language,t.ad_client_id,t.ad_org_id,statement_timestamp(),10,statement_timestamp(),10,t.isactive,''N'' as istranslated,generate_uuid(),'
|| t.tablename
|| suffix;