 
 CREATE TABLE [%1.history_real]
 (
-        id serial PRIMARY KEY,
+        id INTEGER PRIMARY KEY,
         tag_id INTEGER REFERENCES [%1.tag](id),
         open double precision NOT NULL,
         close double precision NOT NULL,


CREATE TABLE [%1.event_int]
(
        id serial PRIMARY KEY,
        tag_id INTEGER REFERENCES [%1.tag](id),
        value INTEGER NOT NULL,
        time INTEGER NOT NULL


CREATE TABLE [%1.event_bool]
(
        id INTEGER PRIMARY KEY,
        tag_id INTEGER REFERENCES [%1.tag](id),
        value BOOL NOT NULL,
        time INTEGER NOT NULL
