mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 20:42:10 -05:00
Remove defaults for SQL parameters
This commit is contained in:
4
conf.c
4
conf.c
@@ -119,8 +119,8 @@ struct config conf_template = {
|
||||
.sql_log_snapshot = 1,
|
||||
.sql_log_movie = 0,
|
||||
.sql_log_timelapse = 0,
|
||||
.sql_query_start = DEF_SQL_QUERY_START,
|
||||
.sql_query = DEF_SQL_QUERY,
|
||||
.sql_query_start = NULL,
|
||||
.sql_query = NULL,
|
||||
.database_type = NULL,
|
||||
.database_dbname = NULL,
|
||||
.database_host = "localhost",
|
||||
|
||||
@@ -667,6 +667,8 @@ quiet on
|
||||
# insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
||||
; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
|
||||
|
||||
# SQL query to execute at the start of an event to provide the dbeventid number
|
||||
; sql_query_start
|
||||
|
||||
############################################################
|
||||
# Database Options
|
||||
|
||||
4
motion.h
4
motion.h
@@ -182,10 +182,6 @@ struct image_data;
|
||||
|
||||
#define DEF_TIMELAPSE_MODE "daily"
|
||||
|
||||
/* Do not break this line into two or more. Must be ONE line */
|
||||
#define DEF_SQL_QUERY_START "sql_query_start insert into security_events(camera, event_time_stamp) values('%t', '%Y-%m-%d %T')"
|
||||
#define DEF_SQL_QUERY "sql_query insert into security_file(camera, filename, frame, file_type, time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T')"
|
||||
|
||||
/* OUTPUT Image types */
|
||||
#define IMAGE_TYPE_JPEG 0
|
||||
#define IMAGE_TYPE_PPM 1
|
||||
|
||||
Reference in New Issue
Block a user