 
 CREATE TABLE [%1.history_int]
 (
-        id serial PRIMARY KEY,
+        id INTEGER PRIMARY KEY,
         tag_id INTEGER REFERENCES [%1.tag](id),
         open INTEGER NOT NULL,
         close INTEGER 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_real]
(
        id INTEGER PRIMARY KEY,
        tag_id INTEGER REFERENCES [%1.tag](id),
        value double precision NOT NULL,
        time INTEGER NOT NULL
