- Fixed field declaration for PostgreSQL 7.4
[gnucomo.git] / src / database / destroy.sql
1 --*************************************************************************
2 --  (c) Copyright 2002, Andromeda Technology & Automation
3 -- This is free software; you can redistribute it and/or modify it under the
4 -- terms of the GNU General Public License, see the file COPYING.
5 --*************************************************************************/
6 --
7 -- Gnucomo database destruction script.
8 --
9 --
10 -- This SQL script drops all tables and sequences from the database
11 -- It is primarily used for testing, where we clean up after performing
12 -- a test.
13 --
14 --
15
16 DROP SEQUENCE "action_actionid_seq";
17
18 DROP TABLE "action";
19
20 DROP SEQUENCE "action_user_actionstepid_seq";
21
22 DROP TABLE "action_user";
23
24 DROP TABLE "db_value";
25
26 DROP TABLE "history";
27
28 DROP SEQUENCE "log_logid_seq";
29
30 DROP TABLE "log";
31
32 DROP SEQUENCE "log_advid_seq";
33
34 DROP TABLE log_abuse;
35 DROP TABLE log_adv_kernel_network;
36 DROP TABLE log_adv_daemon_email;
37 DROP TABLE log_adv_daemon;
38 DROP TABLE "log_adv";
39
40 DROP TABLE "log_notification";
41
42 DROP SEQUENCE "notification_notificationid_seq";
43
44 DROP TABLE "notification";
45
46 DROP SEQUENCE checkid_seq;
47     
48 DROP TABLE notification_check;
49
50 DROP TABLE notification_check_buffer;
51
52 DROP SEQUENCE checklineid_seq;
53      
54 DROP TABLE notification_check_line;
55
56 DROP SEQUENCE "object_objectid_seq";
57
58 DROP TABLE "object";
59
60 DROP TABLE "object_abuse";
61
62 DROP TABLE "object_issue";
63
64 DROP TABLE "object_priority";
65
66 DROP TABLE "object_service";
67
68 DROP TABLE object_statistics;
69
70 DROP TABLE "object_system_user";
71
72 DROP TABLE "object_user";
73
74 DROP SEQUENCE "paramid_seq";
75
76 DROP TABLE "parameter";
77
78 DROP TABLE "parameter_class";
79
80 DROP TABLE "parameter_notification";
81
82 DROP TABLE "priority";
83
84 DROP TABLE "property";
85
86 DROP TABLE "service";
87
88 DROP TABLE service_pattern
89
90 DROP TABLE "status";
91 DROP TABLE supported_os;
92
93 DROP SEQUENCE "type_of_issue_type_of_issue_seq";
94
95 DROP TABLE "type_of_issue";
96
97 DROP SEQUENCE "unprocessed_l_unprocessedid_seq";
98
99 DROP TABLE "unprocessed_log";
100
101 DROP TABLE "user_gnucomo";
102 DROP TABLE "usr";
103