Former-commit-id:46a94c88cd
[formerly09f41a6b31
] [formerly56745c942e
] [formerly46a94c88cd
[formerly09f41a6b31
] [formerly56745c942e
] [formerlyc8e373c098
[formerly56745c942e
[formerly 469c2c597b80fd725f474e0d645656e4054fd69a]]]] Former-commit-id:c8e373c098
Former-commit-id:d25ceb8da7
[formerlya526600e3e
] [formerly d5d0bc708d2a84d887a8b1401a4d596af0a188e3 [formerlye1721cad00
]] Former-commit-id: e5bdfc9c23d1ad9869b9fa62e5f577d39c450737 [formerly18b4d133c7
] Former-commit-id:55708f1d55
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;
|