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