|
|
@@ -9,11 +9,12 @@ CREATE TABLE IF NOT EXISTS gourcelog (
|
|
|
time DATETIME NOT NULL,
|
|
|
user text,
|
|
|
action text,
|
|
|
- path text
|
|
|
+ path text,
|
|
|
+ UNIQUE(time,user,action,path)
|
|
|
);
|
|
|
'''
|
|
|
STMT_INSERT='''
|
|
|
-INSERT INTO gourcelog VALUES (@time,@user,@action,@path)
|
|
|
+INSERT OR IGNORE INTO gourcelog VALUES (@time,@user,@action,@path)
|
|
|
'''
|
|
|
STMT_SELECT='''
|
|
|
SELECT time,user,action,path FROM gourcelog ORDER BY time ASC
|