X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_dbd%2Fmysql.schema;fp=src%2Fos_dbd%2Fmysql.schema;h=b95ff770f49f81c714af0c125bedf9d38f28fe97;hp=c8fa067a737e5c8f96cc48a24dd82fc9e917f3d5;hb=a62b46c229549212d536867b7e5e24d7576ebe8b;hpb=d623b82886b9b5fbba3fa27c3bfac51f3f8af108 diff --git a/src/os_dbd/mysql.schema b/src/os_dbd/mysql.schema index c8fa067..b95ff77 100644 --- a/src/os_dbd/mysql.schema +++ b/src/os_dbd/mysql.schema @@ -1,11 +1,11 @@ -# @(#) $Id: mysql.schema,v 1.8 2009/06/24 17:06:30 dcid Exp $ */ +# @(#) $Id$ */ # # Copyright (C) 2009 Trend Micro Inc. # All rights reserved. # # This program is a free software; you can redistribute it # and/or modify it under the terms of the GNU General Public -# License (version 3) as published by the FSF - Free Software +# License (version 2) as published by the FSF - Free Software # Foundation. # # License details at the LICENSE file included with OSSEC or @@ -75,8 +75,11 @@ CREATE TABLE data server_id SMALLINT UNSIGNED NOT NULL, user TEXT NOT NULL, full_log TEXT NOT NULL, - PRIMARY KEY (id, server_id) + timestamp TIMESTAMP NOT NULL, + PRIMARY KEY (id, server_id), + INDEX time (timestamp) ); + CREATE TABLE alert (