1 |
2276
|
jones
|
/**
|
2 |
|
|
* '$RCSfile$'
|
3 |
|
|
* Copyright: 2004 Regents of the University of California and the
|
4 |
|
|
* National Center for Ecological Analysis and Synthesis
|
5 |
|
|
*
|
6 |
|
|
* '$Author$'
|
7 |
|
|
* '$Date$'
|
8 |
|
|
* '$Revision$'
|
9 |
|
|
*
|
10 |
|
|
* This program is free software; you can redistribute it and/or modify
|
11 |
|
|
* it under the terms of the GNU General Public License as published by
|
12 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
13 |
|
|
* (at your option) any later version.
|
14 |
|
|
*
|
15 |
|
|
* This program is distributed in the hope that it will be useful,
|
16 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
|
|
* GNU General Public License for more details.
|
19 |
|
|
*
|
20 |
|
|
* You should have received a copy of the GNU General Public License
|
21 |
|
|
* along with this program; if not, write to the Free Software
|
22 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23 |
|
|
*/
|
24 |
|
|
|
25 |
|
|
/*
|
26 |
|
|
* this is sql script does the same as the sql script named
|
27 |
|
|
* xmltables.sql except that this script is to be use to
|
28 |
|
|
* create the database tables on a Postgresql backend rather
|
29 |
|
|
* than an Oracle Backend
|
30 |
|
|
*/
|
31 |
|
|
|
32 |
|
|
/*
|
33 |
|
|
* Drop all of the objects in proper order
|
34 |
|
|
*/
|
35 |
|
|
|
36 |
|
|
DROP SEQUENCE xml_nodes_id_seq;
|
37 |
|
|
DROP SEQUENCE xml_revisions_id_seq;
|
38 |
|
|
DROP SEQUENCE xml_catalog_id_seq;
|
39 |
|
|
DROP SEQUENCE xml_relation_id_seq;
|
40 |
|
|
DROP SEQUENCE xml_replication_id_seq;
|
41 |
|
|
DROP SEQUENCE xml_documents_id_seq;
|
42 |
|
|
DROP SEQUENCE accession_number_id_seq;
|
43 |
|
|
DROP SEQUENCE access_log_id_seq;
|
44 |
2457
|
jones
|
DROP SEQUENCE xml_queryresult_id_seq;
|
45 |
|
|
DROP SEQUENCE xml_returnfield_id_seq;
|
46 |
2276
|
jones
|
|
47 |
|
|
DROP TABLE xml_index;
|
48 |
|
|
DROP TABLE xml_access;
|
49 |
|
|
DROP TABLE xml_accesssubtree;
|
50 |
|
|
DROP TABLE xml_revisions;
|
51 |
|
|
DROP TABLE xml_relation;
|
52 |
|
|
DROP TABLE xml_documents;
|
53 |
|
|
DROP TABLE xml_nodes;
|
54 |
|
|
DROP TABLE xml_replication;
|
55 |
|
|
DROP TABLE xml_catalog;
|
56 |
|
|
DROP TABLE accession_number;
|
57 |
|
|
DROP TABLE access_log;
|
58 |
|
|
DROP TABLE harvest_site_schedule;
|
59 |
|
|
DROP TABLE harvest_detail_log;
|
60 |
|
|
DROP TABLE harvest_log;
|
61 |
2456
|
jones
|
DROP TABLE xml_queryresult;
|
62 |
|
|
DROP TABLE xml_returnfield;
|