schema-related information (like schema version, DB syntax, etc.) moved from "config...
[public/netxms.git] / sql / dbinit.in
1 /*
2 ** Input file for database initialization script.
3 ** This file should be processed by C preprocessor to produce
4 ** real initialization script.
5 **
6 ** ex: syntax=c
7 */
8
9 // Common constants
10 #include <nxevent.h>
11 #include <nms_locks.h>
12 #include <nximage.h>
13 #include <netxmsdb.h>
14 #include <nxnt.h>
15 #include <nxtools.h>
16
17 #include "database.in"
18
19 // Start transaction
20
21 #if defined(DB_POSTGRESQL) || defined(DB_SQLITE)
22 BEGIN TRANSACTION;
23 #endif
24
25 // Actual SQL queries
26 #include "schema.in"
27 #include "metadata.in"
28
29 #ifndef SCHEMA_ONLY
30 #include "setup.in"
31 #include "events.in"
32 #include "images.in"
33 #include "policy.in"
34 #include "traps.in"
35 #include "objtools.in"
36 #include "scripts.in"
37 #include "maps.in"
38 #endif
39
40 // End transaction
41 #if defined(DB_POSTGRESQL) || defined(DB_SQLITE)
42 COMMIT TRANSACTION;
43 #endif