awips2/edexOsgi/build.edex/opt/db/ddl/vtec/vtec_initial_setup.sql
Matt Nash 82300ccdcf Moving 12.1.1 into ss_sync
Former-commit-id: 580e2938d7 [formerly 66be3bec40] [formerly c83e5ff474 [formerly 2a9569942c48542cf708b6c0b9189146fd954c11]]
Former-commit-id: c83e5ff474
Former-commit-id: 1faae42484
2012-01-19 11:53:12 -06:00

38 lines
1.4 KiB
SQL

/**
* 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.
**/
-- Performs the initial setup for creating the VTEC tables.
-- Note: this script assumes that the postgres and awips
-- users have been created and that the metadata
-- tablespace has been created.
--
-- Database: metadata
-- Schema: vtec
--
-- File History:
-- 14Aug2007 #393 MW Fegan Initial Creation.
--
--Create the VTEC schema
create schema vtec authorization awips;
--Create the "static" table (required for rules)
create table vtec.static();
alter table vtec.static owner to awips;
create or replace rule rule_static as on insert to vtec.static do also delete from vtec.static;