Former-commit-id:5d99df9969
[formerly6384018950
] [formerly998961612c
] [formerly5d99df9969
[formerly6384018950
] [formerly998961612c
] [formerlyfe872355a7
[formerly998961612c
[formerly 72a49a353cb22c89c9aa19ed1f4a681c3e89d5f3]]]] Former-commit-id:fe872355a7
Former-commit-id:43b7a9b410
[formerly0aab285b8a
] [formerly 7fa801e313a1348e6bb00da11f43928fdf179b69 [formerly30ba1d634e
]] Former-commit-id: 83a711e54bdd8cabc147e6ca5222939082f46f9c [formerly146c5e8940
] Former-commit-id:859965fc9d
36 lines
1.4 KiB
PL/PgSQL
36 lines
1.4 KiB
PL/PgSQL
/**
|
|
* This software was developed and / or modified by Raytheon Company,
|
|
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
*
|
|
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
* This software product contains export-restricted data whose
|
|
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
* to non-U.S. persons whether in the United States or abroad requires
|
|
* an export license or other authorization.
|
|
*
|
|
* Contractor Name: Raytheon Company
|
|
* Contractor Address: 6825 Pine Street, Suite 340
|
|
* Mail Stop B8
|
|
* Omaha, NE 68106
|
|
* 402.291.0100
|
|
*
|
|
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
* further licensing information.
|
|
**/
|
|
\set ON_ERROR_STOP 1
|
|
\connect metadata;
|
|
|
|
-- Start a transaction
|
|
BEGIN;
|
|
|
|
|
|
-- Remove officeID attribute
|
|
update ebxml.value set stringvalue = regexp_replace(stringvalue, 'officeID=".*?"', '', 'g');
|
|
|
|
-- Add officeID element
|
|
update ebxml.value set stringvalue = regexp_replace(stringvalue, '(<pendingSiteSubscription.*?>)', E'\\1<officeId>@@SITE@@</officeId>', 'g');
|
|
update ebxml.value set stringvalue = regexp_replace(stringvalue, '(<initialPendingSiteSubscription.*?>)', E'\\1<officeId>@@SITE@@</officeId>', 'g');
|
|
update ebxml.value set stringvalue = regexp_replace(stringvalue, '(<siteSubscription.*?>)', E'\\1<officeId>@@SITE@@</officeId>', 'g');
|
|
|
|
-- Commit the transaction
|
|
END;
|