]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - schemas/oci8-destroy.sql
Patch from Bug# 1569424 by Bob Peele (bob.peele@oracle.com)
[SourceForge/phpwiki.git] / schemas / oci8-destroy.sql
1 -- $Id: oci8-destroy.sql,v 1.2 2005-02-27 09:33:05 rurban Exp $
2
3 set verify off
4 set feedback off
5
6 --================================================================
7 -- Prefix for table names.
8 --
9 -- You should set this to the same value you specify for
10 -- $DBParams['prefix'] in index.php.
11 --
12 -- You have to use a prefix, because some phpWiki tablenames are 
13 -- Oracle reserved words!
14
15 define prefix=phpwiki_
16
17 --================================================================
18 --
19 -- Don't modify below this point unless you know what you are doing.
20 --
21 --================================================================
22
23 --================================================================
24 -- Note on Oracle datatypes...
25 -- 
26 -- Most of the 'NOT NULL' constraints on the character columns have been 
27 --      dropped since they can contain empty strings which are seen by 
28 --      Oracle as NULL.
29 -- Oracle CLOBs are used for TEXTs/MEDUIMTEXTs columns.
30
31
32 prompt Initializing PhpWiki tables with:
33 prompt        prefix =  &prefix
34 prompt 
35 prompt Expect some 'ORA-00942: table or view does not exist' unless you are
36 prompt overwriting existing tables.
37 prompt 
38
39 define page_tbl=&prefix.page
40 define version_tbl=&prefix.version
41 define recent_tbl=&prefix.recent
42 define nonempty_tbl=&prefix.nonempty
43 define link_tbl=&prefix.link
44 define session_tbl=&prefix.session
45 define pref_tbl=&prefix.pref
46 define user_tbl=&prefix.user
47 define member_tbl=&prefix.member
48 define rating_tbl=&prefix.rating
49 define accesslog_tbl=&prefix.accesslog
50
51 prompt Dropping &page_tbl
52 DROP TABLE &page_tbl;
53
54 prompt Dropping &version_tbl
55 DROP TABLE &version_tbl;
56
57 prompt Dropping &recent_tbl
58 DROP TABLE &recent_tbl;
59
60 prompt Dropping &nonempty_tbl
61 DROP TABLE &nonempty_tbl;
62
63 prompt Dropping &link_tbl
64 DROP TABLE &link_tbl;
65
66 prompt Dropping &session_tbl
67 DROP TABLE &session_tbl;
68
69 -- Optional DB Auth and Prefs
70 -- For these tables below the default table prefix must be used 
71 -- in the DBAuthParam SQL statements also.
72
73 prompt Dropping &pref_tbl
74 DROP TABLE &pref_tbl;
75
76 -- better use the extra pref table where such users can be created easily 
77 -- without password.
78
79 prompt Dropping &user_tbl
80 DROP TABLE &user_tbl;
81
82 prompt Dropping &member_tbl
83 DROP TABLE &member_tbl;
84
85 -- if you plan to use the wikilens theme
86 prompt Dropping &rating_tbl
87 DROP TABLE &rating_tbl;
88
89 prompt Dropping &accesslog_tbl
90 DROP TABLE &accesslog_tbl;