IDEMPIERE-4586 Update translation of Client to Tenant (#1233)

* IDEMPIERE-4586 Update translation of Client to Tenant

* Exclude AD_Ref_List.Name from the update as it impacts too many constants generated in X_ classes

* * update the Updated column too so that it is easier to trace back which records have been updated (as suggested by Heng Sin)

* * Update some additional messages that becomes duplicated (as reported by Nicolas)

* * Add updates to AD_Tab.CommitWarning (as reported by Nicolas)
This commit is contained in:
Carlos Ruiz 2022-03-12 16:59:32 +01:00 committed by GitHub
parent 9d0eea8fe3
commit 1a51e92c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 645 additions and 43 deletions

View File

@ -0,0 +1,301 @@
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenant/Tenant(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, ' Tenant is a synonym for Tenant.', '') WHERE AD_Element_ID<1000000 AND Help LIKE '% Tenant is a synonym for Tenant.%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(PrintName,'(^|\W)client(\W|$)') AND PrintName NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(PrintName,'(^|\W)clients(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(PrintName,'(^|\W)Client(\W|$)');
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND REGEXP_LIKE(PrintName,'(^|\W)Clients(\W|$)');
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Field_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenant/Tenant(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Tenant/Tenant', 'Tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Tenant/Tenant(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Menu_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'client', 'tenant') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgText,'(^|\W)client(\W|$)') AND MsgText NOT LIKE '%client-%';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'clients', 'tenants') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgText,'(^|\W)clients(\W|$)');
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'Client', 'Tenant') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgText,'(^|\W)Client(\W|$)');
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'Clients', 'Tenants') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgText,'(^|\W)Clients(\W|$)');
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'client', 'tenant') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgTip,'(^|\W)client(\W|$)') AND MsgTip NOT LIKE '%client-%';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'clients', 'tenants') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgTip,'(^|\W)clients(\W|$)');
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'Client', 'Tenant') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgTip,'(^|\W)Client(\W|$)');
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'Clients', 'Tenants') WHERE AD_Message_ID<1000000 AND REGEXP_LIKE(MsgTip,'(^|\W)Clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenant/Tenant(\W|$)');
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, ' Tenant is a synonym for Tenant.', '') WHERE AD_Process_Para_ID<1000000 AND Help LIKE '% Tenant is a synonym for Tenant.%';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)') AND IsCentrallyMaintained='N';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Reference_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Ref_List_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Ref_List_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Ref_List_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Ref_List_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenant/Tenant(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(CommitWarning,'(^|\W)client(\W|$)') AND CommitWarning NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(CommitWarning,'(^|\W)clients(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(CommitWarning,'(^|\W)Client(\W|$)');
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND REGEXP_LIKE(CommitWarning,'(^|\W)Clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenants/Tenants', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenants/Tenants(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenants/Tenants', 'Tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Tenants/Tenants(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)client(\W|$)') AND Description NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Client(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Description,'(^|\W)Clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)client(\W|$)') AND Help NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Client(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Help,'(^|\W)Clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)client(\W|$)') AND Name NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)clients(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Client(\W|$)');
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND REGEXP_LIKE(Name,'(^|\W)Clients(\W|$)');
SELECT register_migration_script('202203081457_IDEMPIERE-4586.sql') FROM dual
;

View File

@ -0,0 +1,301 @@
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Element_ID<1000000 AND Description~'\mTenant/Tenant\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, ' Tenant is a synonym for Tenant.', '') WHERE AD_Element_ID<1000000 AND Help LIKE '% Tenant is a synonym for Tenant.%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'client', 'tenant') WHERE AD_Element_ID<1000000 AND PrintName~'\mclient\M' AND PrintName NOT LIKE '%client-%';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'clients', 'tenants') WHERE AD_Element_ID<1000000 AND PrintName~'\mclients\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'Client', 'Tenant') WHERE AD_Element_ID<1000000 AND PrintName~'\mClient\M';
UPDATE AD_Element SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), PrintName=REPLACE(PrintName, 'Clients', 'Tenants') WHERE AD_Element_ID<1000000 AND PrintName~'\mClients\M';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Field_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Field_ID<1000000 AND Help~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Field_ID<1000000 AND Help~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Field_ID<1000000 AND Help~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Field_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Field_ID<1000000 AND Name~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Field_ID<1000000 AND Name~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Field SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Field_ID<1000000 AND Name~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Form_ID<1000000 AND Description~'\mTenant/Tenant\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Tenant/Tenant', 'Tenant') WHERE AD_Form_ID<1000000 AND Help~'\mTenant/Tenant\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Form_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Form_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Form_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Form SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Form_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Menu_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Menu_ID<1000000 AND Description~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Menu_ID<1000000 AND Description~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Menu_ID<1000000 AND Description~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Menu_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Menu_ID<1000000 AND Name~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Menu_ID<1000000 AND Name~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Menu SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Menu_ID<1000000 AND Name~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'client', 'tenant') WHERE AD_Message_ID<1000000 AND MsgText~'\mclient\M' AND MsgText NOT LIKE '%client-%';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'clients', 'tenants') WHERE AD_Message_ID<1000000 AND MsgText~'\mclients\M';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'Client', 'Tenant') WHERE AD_Message_ID<1000000 AND MsgText~'\mClient\M';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgText=REPLACE(MsgText, 'Clients', 'Tenants') WHERE AD_Message_ID<1000000 AND MsgText~'\mClients\M';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'client', 'tenant') WHERE AD_Message_ID<1000000 AND MsgTip~'\mclient\M' AND MsgTip NOT LIKE '%client-%';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'clients', 'tenants') WHERE AD_Message_ID<1000000 AND MsgTip~'\mclients\M';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'Client', 'Tenant') WHERE AD_Message_ID<1000000 AND MsgTip~'\mClient\M';
UPDATE AD_Message SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), MsgTip=REPLACE(MsgTip, 'Clients', 'Tenants') WHERE AD_Message_ID<1000000 AND MsgTip~'\mClients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Process_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Process_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Process_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Process SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Process_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND Description~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND Description~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND Description~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND Description~'\mTenant/Tenant\M';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND Help~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND Help~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND Help~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, ' Tenant is a synonym for Tenant.', '') WHERE AD_Process_Para_ID<1000000 AND Help LIKE '% Tenant is a synonym for Tenant.%';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Process_Para_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Process_Para_ID<1000000 AND Name~'\mclients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Process_Para_ID<1000000 AND Name~'\mClient\M' AND IsCentrallyMaintained='N';
UPDATE AD_Process_Para SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Process_Para_ID<1000000 AND Name~'\mClients\M' AND IsCentrallyMaintained='N';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Reference_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Reference_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Reference_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Reference_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Reference_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Reference_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Reference_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Reference SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Reference_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Ref_List_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Ref_List_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Ref_List_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Ref_List SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Ref_List_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenant/Tenant', 'Tenant') WHERE AD_Tab_ID<1000000 AND Description~'\mTenant/Tenant\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'client', 'tenant') WHERE AD_Tab_ID<1000000 AND CommitWarning~'\mclient\M' AND CommitWarning NOT LIKE '%client-%';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'clients', 'tenants') WHERE AD_Tab_ID<1000000 AND CommitWarning~'\mclients\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'Client', 'Tenant') WHERE AD_Tab_ID<1000000 AND CommitWarning~'\mClient\M';
UPDATE AD_Tab SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), CommitWarning=REPLACE(CommitWarning, 'Clients', 'Tenants') WHERE AD_Tab_ID<1000000 AND CommitWarning~'\mClients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenants/Tenants', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND Description~'\mTenants/Tenants\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_WF_Node_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_WF_Node_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_WF_Node_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_WF_Node SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_WF_Node_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Tenants/Tenants', 'Tenants') WHERE AD_Window_ID<1000000 AND Description~'\mTenants/Tenants\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Window_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Window_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Window_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Window SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Window_ID<1000000 AND Name~'\mClients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND Description~'\mclient\M' AND Description NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND Description~'\mclients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND Description~'\mClient\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Description=REPLACE(Description, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND Description~'\mClients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND Help~'\mclient\M' AND Help NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND Help~'\mclients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND Help~'\mClient\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Help=REPLACE(Help, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND Help~'\mClients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'client', 'tenant') WHERE AD_Workflow_ID<1000000 AND Name~'\mclient\M' AND Name NOT LIKE '%client-%';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'clients', 'tenants') WHERE AD_Workflow_ID<1000000 AND Name~'\mclients\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Client', 'Tenant') WHERE AD_Workflow_ID<1000000 AND Name~'\mClient\M';
UPDATE AD_Workflow SET Updated=TO_TIMESTAMP('2022-03-10 00:00:00','YYYY-MM-DD HH24:MI:SS'), Name=REPLACE(Name, 'Clients', 'Tenants') WHERE AD_Workflow_ID<1000000 AND Name~'\mClients\M';
SELECT register_migration_script('202203081457_IDEMPIERE-4586.sql') FROM dual
;

View File

@ -101,9 +101,9 @@ public class AssetDelivery extends SvrProcess
// Test // Test
if (m_client.getSMTPHost() == null || m_client.getSMTPHost().length() == 0) if (m_client.getSMTPHost() == null || m_client.getSMTPHost().length() == 0)
throw new Exception ("No Client SMTP Info"); throw new Exception ("No Tenant SMTP Info");
if (m_client.getRequestEMail() == null) if (m_client.getRequestEMail() == null)
throw new Exception ("No Client Request User"); throw new Exception ("No Tenant Request User");
// Asset selected // Asset selected
if (m_A_Asset_ID != 0) if (m_A_Asset_ID != 0)

View File

@ -359,13 +359,13 @@ public class MigrateStorageProvider extends SvrProcess {
private void progress(int idxClient, int totalClients, int idxRecord, int cntRecords, String msg) { private void progress(int idxClient, int totalClients, int idxRecord, int cntRecords, String msg) {
if (processUI != null) { if (processUI != null) {
processUI.statusUpdate("Client " + idxClient + "/" + totalClients + " - " + msg + " " + idxRecord + "/" + cntRecords + " = " + idxRecord*100/cntRecords + "%"); processUI.statusUpdate("Tenant " + idxClient + "/" + totalClients + " - " + msg + " " + idxRecord + "/" + cntRecords + " = " + idxRecord*100/cntRecords + "%");
} }
} }
private void status(int idxClient, int totalClients, String msg) { private void status(int idxClient, int totalClients, String msg) {
if (processUI != null) { if (processUI != null) {
processUI.statusUpdate("Client " + idxClient + "/" + totalClients + " - " + msg); processUI.statusUpdate("Tenant " + idxClient + "/" + totalClients + " - " + msg);
} }
} }

View File

@ -79,11 +79,11 @@ public class SalesOrderRateInquiryProcess extends SvrProcess
MClientInfo ci = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName()); MClientInfo ci = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName());
if (ci.getC_ChargeFreight_ID() == 0 && ci.getM_ProductFreight_ID() == 0) if (ci.getC_ChargeFreight_ID() == 0 && ci.getM_ProductFreight_ID() == 0)
throw new AdempiereException("Product or Charge for Freight is not defined at Client window > Client Info tab"); throw new AdempiereException("Product or Charge for Freight is not defined at Tenant window > Tenant Info tab");
if (ci.getC_UOM_Weight_ID() == 0) if (ci.getC_UOM_Weight_ID() == 0)
throw new AdempiereException("UOM for Weight is not defined at Client window > Client Info tab"); throw new AdempiereException("UOM for Weight is not defined at Tenant window > Tenant Info tab");
if (ci.getC_UOM_Length_ID() == 0) if (ci.getC_UOM_Length_ID() == 0)
throw new AdempiereException("UOM for Length is not defined at Client window > Client Info tab"); throw new AdempiereException("UOM for Length is not defined at Tenant window > Tenant Info tab");
MOrderLine[] ols = m_order.getLines(false, MOrderLine.COLUMNNAME_Line); MOrderLine[] ols = m_order.getLines(false, MOrderLine.COLUMNNAME_Line);
if (ols.length == 0) if (ols.length == 0)
@ -158,7 +158,7 @@ public class SalesOrderRateInquiryProcess extends SvrProcess
else if (ci.getM_ProductFreight_ID() > 0) else if (ci.getM_ProductFreight_ID() > 0)
freightLine.setM_Product_ID(ci.getM_ProductFreight_ID()); freightLine.setM_Product_ID(ci.getM_ProductFreight_ID());
else else
throw new AdempiereException("Product or Charge for Freight is not defined at Client window > Client Info tab"); throw new AdempiereException("Product or Charge for Freight is not defined at Tenant window > Tenant Info tab");
} }
freightLine.setC_BPartner_Location_ID(m_order.getC_BPartner_Location_ID()); freightLine.setC_BPartner_Location_ID(m_order.getC_BPartner_Location_ID());

View File

@ -1481,7 +1481,7 @@ public class MOrder extends X_C_Order implements DocAction
MClientInfo ci = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName()); MClientInfo ci = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName());
if (ci.getC_ChargeFreight_ID() == 0 && ci.getM_ProductFreight_ID() == 0) if (ci.getC_ChargeFreight_ID() == 0 && ci.getM_ProductFreight_ID() == 0)
{ {
m_processMsg = "Product or Charge for Freight is not defined at Client window > Client Info tab"; m_processMsg = "Product or Charge for Freight is not defined at Tenant window > Tenant Info tab";
return false; return false;
} }
@ -1529,7 +1529,7 @@ public class MOrder extends X_C_Order implements DocAction
else if (ci.getM_ProductFreight_ID() > 0) else if (ci.getM_ProductFreight_ID() > 0)
freightLine.setM_Product_ID(ci.getM_ProductFreight_ID()); freightLine.setM_Product_ID(ci.getM_ProductFreight_ID());
else else
throw new AdempiereException("Product or Charge for Freight is not defined at Client window > Client Info tab"); throw new AdempiereException("Product or Charge for Freight is not defined at Tenant window > Tenant Info tab");
} }
freightLine.setC_BPartner_Location_ID(getC_BPartner_Location_ID()); freightLine.setC_BPartner_Location_ID(getC_BPartner_Location_ID());
@ -1542,12 +1542,12 @@ public class MOrder extends X_C_Order implements DocAction
{ {
if (ci.getC_UOM_Weight_ID() == 0) if (ci.getC_UOM_Weight_ID() == 0)
{ {
m_processMsg = "UOM for Weight is not defined at Client window > Client Info tab"; m_processMsg = "UOM for Weight is not defined at Tenant window > Tenant Info tab";
return false; return false;
} }
if (ci.getC_UOM_Length_ID() == 0) if (ci.getC_UOM_Length_ID() == 0)
{ {
m_processMsg = "UOM for Length is not defined at Client window > Client Info ta"; m_processMsg = "UOM for Length is not defined at Tenant window > Tenant Info ta";
return false; return false;
} }
@ -1595,7 +1595,7 @@ public class MOrder extends X_C_Order implements DocAction
else if (ci.getM_ProductFreight_ID() > 0) else if (ci.getM_ProductFreight_ID() > 0)
freightLine.setM_Product_ID(ci.getM_ProductFreight_ID()); freightLine.setM_Product_ID(ci.getM_ProductFreight_ID());
else else
throw new AdempiereException("Product or Charge for Freight is not defined at Client window > Client Info tab"); throw new AdempiereException("Product or Charge for Freight is not defined at Tenant window > Tenant Info tab");
} }
freightLine.setC_BPartner_Location_ID(getC_BPartner_Location_ID()); freightLine.setC_BPartner_Location_ID(getC_BPartner_Location_ID());

View File

@ -149,7 +149,7 @@ public final class MSetup
m_client.setName(m_clientName); m_client.setName(m_clientName);
if (!m_client.save()) if (!m_client.save())
{ {
String err = "Client NOT created"; String err = "Tenant NOT created";
log.log(Level.SEVERE, err); log.log(Level.SEVERE, err);
m_info.append(err); m_info.append(err);
m_trx.rollback(); m_trx.rollback();
@ -179,7 +179,7 @@ public final class MSetup
// Trees and Client Info // Trees and Client Info
if (!m_client.setupClientInfo(m_lang)) if (!m_client.setupClientInfo(m_lang))
{ {
String err = "Client Info NOT created"; String err = "Tenant Info NOT created";
log.log(Level.SEVERE, err); log.log(Level.SEVERE, err);
m_info.append(err); m_info.append(err);
m_trx.rollback(); m_trx.rollback();

View File

@ -808,13 +808,13 @@ public class MSysConfig extends X_AD_SysConfig
if (getAD_Org_ID() != 0 && if (getAD_Org_ID() != 0 &&
(configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_System) || (configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_System) ||
configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_Client))) { configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_Client))) {
log.saveError( "Can't Save Org Level", "This is a system or client parameter, you can't save it as organization parameter" ); log.saveError( "Can't Save Org Level", "This is a system or tenant parameter, you can't save it as organization parameter" );
return false; return false;
} }
// Disallow saving client parameter if the system parameter is marked as 'S' // Disallow saving client parameter if the system parameter is marked as 'S'
if (getAD_Client_ID() != 0 && configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_System)) { if (getAD_Client_ID() != 0 && configLevel.equals(MSysConfig.CONFIGURATIONLEVEL_System)) {
log.saveError( "Can't Save Client Level", "This is a system parameter, you can't save it as client parameter" ); log.saveError( "Can't Save Tenant Level", "This is a system parameter, you can't save it as tenant parameter" );
return false; return false;
} }

View File

@ -144,7 +144,7 @@ public class ModelValidationEngine
{ {
//logging to db will try to init ModelValidationEngine again! //logging to db will try to init ModelValidationEngine again!
e.printStackTrace(); e.printStackTrace();
missingModelValidationMessage = missingModelValidationMessage + e.toString() + " on client " + client.getName() + '\n'; missingModelValidationMessage = missingModelValidationMessage + e.toString() + " on tenant " + client.getName() + '\n';
} }
} }
} }
@ -159,7 +159,7 @@ public class ModelValidationEngine
if (validator == null) if (validator == null)
{ {
missingModelValidationMessage = missingModelValidationMessage + " Missing class " + className + missingModelValidationMessage = missingModelValidationMessage + " Missing class " + className +
(client != null ? (" on client " + client.getName()) : " global") + '\n'; (client != null ? (" on tenant " + client.getName()) : " global") + '\n';
} }
else else
{ {
@ -171,7 +171,7 @@ public class ModelValidationEngine
//logging to db will try to init ModelValidationEngine again! //logging to db will try to init ModelValidationEngine again!
e.printStackTrace(); e.printStackTrace();
missingModelValidationMessage = missingModelValidationMessage + e.toString() + missingModelValidationMessage = missingModelValidationMessage + e.toString() +
(client != null ? (" on client " + client.getName()) : " global") + '\n'; (client != null ? (" on tenant " + client.getName()) : " global") + '\n';
} }
} }

View File

@ -1553,7 +1553,7 @@ public class Login
*/ */
public KeyNamePair[] getRoles(String app_user, KeyNamePair client, String roleTypes) { public KeyNamePair[] getRoles(String app_user, KeyNamePair client, String roleTypes) {
if (client == null) if (client == null)
throw new IllegalArgumentException("Client missing"); throw new IllegalArgumentException("Tenant missing");
String whereRoleType = MRole.getWhereRoleType(roleTypes, "r"); String whereRoleType = MRole.getWhereRoleType(roleTypes, "r");
ArrayList<KeyNamePair> rolesList = new ArrayList<KeyNamePair>(); ArrayList<KeyNamePair> rolesList = new ArrayList<KeyNamePair>();

View File

@ -122,20 +122,20 @@ public class MoveClient extends SvrProcess {
// validate parameters // validate parameters
if (p_IsCopyClient) { if (p_IsCopyClient) {
if (! Util.isEmpty(p_ClientsToExclude, true)) if (! Util.isEmpty(p_ClientsToExclude, true))
throw new AdempiereException("Clients to exclude must be empty when copying from template"); throw new AdempiereException("Tenants to exclude must be empty when copying from template");
if (! Util.isEmpty(p_TablesToPreserveIDs, true)) if (! Util.isEmpty(p_TablesToPreserveIDs, true))
throw new AdempiereException("Preserve IDs must be empty when copying from template"); throw new AdempiereException("Preserve IDs must be empty when copying from template");
try { try {
Integer.parseInt(p_ClientsToInclude); Integer.parseInt(p_ClientsToInclude);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
throw new AdempiereException("Error in parameter Clients to Include, must be just one integer"); throw new AdempiereException("Error in parameter Tenants to Include, must be just one integer");
} }
} else { } else {
if (Util.isEmpty(p_JDBC_URL, true)) if (Util.isEmpty(p_JDBC_URL, true))
throw new AdempiereException("Fill mandatory JDBC_URL"); throw new AdempiereException("Fill mandatory JDBC_URL");
} }
if (! Util.isEmpty(p_ClientsToInclude, true) && ! Util.isEmpty(p_ClientsToExclude, true)) if (! Util.isEmpty(p_ClientsToInclude, true) && ! Util.isEmpty(p_ClientsToExclude, true))
throw new AdempiereException("Clients to exclude and include cannot be used at the same time"); throw new AdempiereException("Tenants to exclude and include cannot be used at the same time");
if (Util.isEmpty(p_UserName, true)) if (Util.isEmpty(p_UserName, true))
p_UserName = CConnection.get().getDbUid(); p_UserName = CConnection.get().getDbUid();
if (Util.isEmpty(p_Password, true)) if (Util.isEmpty(p_Password, true))
@ -172,7 +172,7 @@ public class MoveClient extends SvrProcess {
try { try {
clientInt = Integer.parseInt(clientStr); clientInt = Integer.parseInt(clientStr);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
throw new AdempiereException("Error in parameter Clients to Exclude, must be a list of integer separated by commas, wrong format: " + clientStr); throw new AdempiereException("Error in parameter Tenants to Exclude, must be a list of integer separated by commas, wrong format: " + clientStr);
} }
p_whereClient.append(clientInt); p_whereClient.append(clientInt);
} }
@ -191,7 +191,7 @@ public class MoveClient extends SvrProcess {
try { try {
clientInt = Integer.parseInt(clientStr); clientInt = Integer.parseInt(clientStr);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
throw new AdempiereException("Error in parameter Clients to Include, must be a list of integer separated by commas, wrong format: " + clientStr); throw new AdempiereException("Error in parameter Tenants to Include, must be a list of integer separated by commas, wrong format: " + clientStr);
} }
p_whereClient.append(clientInt); p_whereClient.append(clientInt);
} }
@ -248,10 +248,10 @@ public class MoveClient extends SvrProcess {
// Validate that the newtenant value/name doesn't exist // Validate that the newtenant value/name doesn't exist
int cntCN = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM AD_Client WHERE Name=?", p_ClientName); int cntCN = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM AD_Client WHERE Name=?", p_ClientName);
if (cntCN > 0) if (cntCN > 0)
throw new AdempiereUserError("Client with name " + p_ClientName + " already exists in database"); throw new AdempiereUserError("Tenant with name " + p_ClientName + " already exists in database");
int cntCV = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM AD_Client WHERE Value=?", p_ClientValue); int cntCV = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM AD_Client WHERE Value=?", p_ClientValue);
if (cntCV > 0) if (cntCV > 0)
throw new AdempiereUserError("Client with search key " + p_ClientValue + " already exists in database"); throw new AdempiereUserError("Tenant with search key " + p_ClientValue + " already exists in database");
int cntCW = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM W_Store WHERE WebContext=?", p_ClientValue.toLowerCase()); int cntCW = DB.getSQLValueEx(get_TrxName(), "SELECT COUNT(*) FROM W_Store WHERE WebContext=?", p_ClientValue.toLowerCase());
if (cntCW > 0) if (cntCW > 0)
throw new AdempiereUserError("WebStore with context " + p_ClientValue.toLowerCase() + " already exists in database"); throw new AdempiereUserError("WebStore with context " + p_ClientValue.toLowerCase() + " already exists in database");
@ -288,7 +288,7 @@ public class MoveClient extends SvrProcess {
cnt = DB.getSQLValueEx(get_TrxName(), sqlValidateLocalClient.toString(), clientValue, clientName, clientUUID); cnt = DB.getSQLValueEx(get_TrxName(), sqlValidateLocalClient.toString(), clientValue, clientName, clientUUID);
} }
if (cnt > 0) { if (cnt > 0) {
String msg = "Client " + clientValue + "/" + clientName + " already exists. UUID=" + clientUUID; String msg = "Tenant " + clientValue + "/" + clientName + " already exists. UUID=" + clientUUID;
if (p_isPreserveAll || p_tablesToPreserveIDsList.contains("AD_CLIENT")) { if (p_isPreserveAll || p_tablesToPreserveIDsList.contains("AD_CLIENT")) {
msg += ", ID=" + clientID; msg += ", ID=" + clientID;
} }
@ -302,7 +302,7 @@ public class MoveClient extends SvrProcess {
DB.close(rsVC, stmtVC); DB.close(rsVC, stmtVC);
} }
if (noClients <= 0) { if (noClients <= 0) {
throw new AdempiereUserError("No clients to move"); throw new AdempiereUserError("No tenants to move");
} }
if (p_errorList.size() > 0) { if (p_errorList.size() > 0) {
return; return;
@ -396,7 +396,7 @@ public class MoveClient extends SvrProcess {
sqlCountData.append(" WHERE ").append(p_whereClient); sqlCountData.append(" WHERE ").append(p_whereClient);
int cntCD = countInExternal(sqlCountData.toString()); int cntCD = countInExternal(sqlCountData.toString());
if (cntCD == 0) { if (cntCD == 0) {
if (log.isLoggable(Level.INFO)) log.info("Ignoring " + tableName + ", doesn't have client data"); if (log.isLoggable(Level.INFO)) log.info("Ignoring " + tableName + ", doesn't have tenant data");
return; return;
} }
if (cntCD > 0 && "AD_Attribute_Value".equalsIgnoreCase(tableName)) { if (cntCD > 0 && "AD_Attribute_Value".equalsIgnoreCase(tableName)) {
@ -567,7 +567,7 @@ public class MoveClient extends SvrProcess {
int foreignID = rsFC.getInt(2); int foreignID = rsFC.getInt(2);
String foreignUU = rsFC.getString(3); String foreignUU = rsFC.getString(3);
if (clientID > 0) { if (clientID > 0) {
p_errorList.add("Column " + tableName + "." + columnName + " has invalid cross-client reference to client " + clientID + " on ID=" + foreignID); p_errorList.add("Column " + tableName + "." + columnName + " has invalid cross-tenant reference to tenant " + clientID + " on ID=" + foreignID);
continue; continue;
} }
if (foreignID > 0) { if (foreignID > 0) {
@ -753,7 +753,7 @@ public class MoveClient extends SvrProcess {
try { try {
clientInt = Integer.parseInt(p_ClientsToInclude); clientInt = Integer.parseInt(p_ClientsToInclude);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
throw new AdempiereException("Error in parameter Clients to Include, must be just one integer"); throw new AdempiereException("Error in parameter Tenants to Include, must be just one integer");
} }
newADClientID = DB.getSQLValueEx(get_TrxName(), newADClientID = DB.getSQLValueEx(get_TrxName(),
"SELECT Target_ID FROM T_MoveClient WHERE AD_PInstance_ID=? AND TableName=? AND Source_ID=?", "SELECT Target_ID FROM T_MoveClient WHERE AD_PInstance_ID=? AND TableName=? AND Source_ID=?",

View File

@ -110,7 +110,7 @@ public class POFinder {
Query query = new Query(ctx.ctx, tableName, idColumn+"=?", getTrxName(ctx)); Query query = new Query(ctx.ctx, tableName, idColumn+"=?", getTrxName(ctx));
/* Allow reading from a different tenant to show user a clearer error message below /* Allow reading from a different tenant to show user a clearer error message below
* This is, instead of "Cross tenant PO reading request" the user will see a message * This is, instead of "Cross tenant PO reading request" the user will see a message
* "2Pack cannot update/access record that belongs to another client" which is more explanatory */ * "2Pack cannot update/access record that belongs to another tenant" which is more explanatory */
try { try {
PO.setCrossTenantSafe(); PO.setCrossTenantSafe();
po = query.setParameters(Integer.valueOf(id.trim())).firstOnly(); po = query.setParameters(Integer.valueOf(id.trim())).firstOnly();
@ -119,7 +119,7 @@ public class POFinder {
} }
if (po != null && po.getAD_Client_ID() > 0) { if (po != null && po.getAD_Client_ID() > 0) {
if (po.getAD_Client_ID() != Env.getAD_Client_ID(ctx.ctx)) { if (po.getAD_Client_ID() != Env.getAD_Client_ID(ctx.ctx)) {
throw new IllegalStateException("2Pack cannot update/access record that belongs to another client. TableName="+po.get_TableName() throw new IllegalStateException("2Pack cannot update/access record that belongs to another tenant. TableName="+po.get_TableName()
+", Record_ID="+po.get_ID() + ", AD_Client_ID="+po.getAD_Client_ID()+" Context AD_Client_ID="+Env.getAD_Client_ID(ctx.ctx)); +", Record_ID="+po.get_ID() + ", AD_Client_ID="+po.getAD_Client_ID()+" Context AD_Client_ID="+Env.getAD_Client_ID(ctx.ctx));
} }
} }

View File

@ -161,7 +161,7 @@ public class PackInApplicationActivator extends AbstractActivator{
seedClientValue = clientValue.split("-")[2]; seedClientValue = clientValue.split("-")[2];
seedClientIDs = getClientIDs(seedClientValue); seedClientIDs = getClientIDs(seedClientValue);
if (seedClientIDs.length == 0) { if (seedClientIDs.length == 0) {
logger.log(Level.WARNING, "Seed client does not exist: " + seedClientValue); logger.log(Level.WARNING, "Seed tenant does not exist: " + seedClientValue);
return false; return false;
} }
} }
@ -183,7 +183,7 @@ public class PackInApplicationActivator extends AbstractActivator{
} else { } else {
clientIDs = getClientIDs(clientValue); clientIDs = getClientIDs(clientValue);
if (clientIDs.length == 0) { if (clientIDs.length == 0) {
logger.log(Level.WARNING, "Client does not exist: " + clientValue); logger.log(Level.WARNING, "Tenant does not exist: " + clientValue);
return false; return false;
} }
} }
@ -191,7 +191,7 @@ public class PackInApplicationActivator extends AbstractActivator{
for (int clientID : clientIDs) { for (int clientID : clientIDs) {
MClient client = MClient.get(Env.getCtx(), clientID); MClient client = MClient.get(Env.getCtx(), clientID);
if (allClients) { if (allClients) {
String message = "Installing " + fileName + " in client " + client.getValue() + "/" + client.getName(); String message = "Installing " + fileName + " in tenant " + client.getValue() + "/" + client.getName();
statusUpdate(message); statusUpdate(message);
} }
Env.setContext(Env.getCtx(), Env.AD_CLIENT_ID, client.getAD_Client_ID()); Env.setContext(Env.getCtx(), Env.AD_CLIENT_ID, client.getAD_Client_ID());

View File

@ -101,7 +101,7 @@ public class ExportModelValidator implements ModelValidator {
if (log.isLoggable(Level.INFO)) log.info(client.toString()); if (log.isLoggable(Level.INFO)) log.info(client.toString());
loadReplicationStrategy(engine); loadReplicationStrategy(engine);
} else { } else {
log.warning("Export Model Validator cannot be used as a global validator, it needs to be defined in a per-client (tenant) basis"); log.warning("Export Model Validator cannot be used as a global validator, it needs to be defined in a per-tenant basis");
return; return;
} }
} }

View File

@ -1200,7 +1200,7 @@ public class AdempiereMonitor extends HttpServlet
// //
line = new tr(); line = new tr();
MClient[] clients = MClient.getAll(Env.getCtx(), "AD_Client_ID"); MClient[] clients = MClient.getAll(Env.getCtx(), "AD_Client_ID");
line.addElement(new th().addElement("Client #" + clients.length + " - EMail Test:")); line.addElement(new th().addElement("Tenant #" + clients.length + " - EMail Test:"));
p = new p(); p = new p();
for (int i = 0; i < clients.length; i++) for (int i = 0; i < clients.length; i++)
{ {
@ -1270,7 +1270,7 @@ public class AdempiereMonitor extends HttpServlet
p = new p(); p = new p();
if (isSystemInMaintenance) if (isSystemInMaintenance)
p.addElement("All clients are in maintenance mode"); p.addElement("All tenants are in maintenance mode");
else if (inMaintenanceClients.size() > 0) { else if (inMaintenanceClients.size() > 0) {
boolean first = true; boolean first = true;
for (int clientID : inMaintenanceClients) { for (int clientID : inMaintenanceClients) {
@ -1284,7 +1284,7 @@ public class AdempiereMonitor extends HttpServlet
} }
} }
else else
p.addElement("All clients are in normal operation mode"); p.addElement("All tenants are in normal operation mode");
if (clients.length == 0) if (clients.length == 0)
p.addElement("&nbsp;"); p.addElement("&nbsp;");
line.addElement(new td().addElement(p)); line.addElement(new td().addElement(p));

View File

@ -129,7 +129,7 @@ public class AbstractService {
} }
} }
if (!okclient) if (!okclient)
return "Error logging in - client not allowed for this user"; return "Error logging in - tenant not allowed for this user";
m_cs.getCtx().setProperty(Env.AD_CLIENT_ID, "" + loginRequest.getClientID()); m_cs.getCtx().setProperty(Env.AD_CLIENT_ID, "" + loginRequest.getClientID());
Env.setContext(m_cs.getCtx(), Env.AD_CLIENT_ID, (String) selectedClient.getID()); Env.setContext(m_cs.getCtx(), Env.AD_CLIENT_ID, (String) selectedClient.getID());