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