mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
c339047fdd
contrib/dblog/db_create_sqlite.sql: changing datatypes to keep in sync git-svn-id: https://svn.fhem.de/fhem/trunk@12118 2b470e98-0d58-463d-a4d8-8e2adae1ed80
4 lines
389 B
SQL
4 lines
389 B
SQL
CREATE TABLE current (TIMESTAMP TIMESTAMP, DEVICE varchar(64), TYPE varchar(64), EVENT varchar(512), READING varchar(64), VALUE varchar(128), UNIT varchar(32));
|
|
CREATE TABLE history (TIMESTAMP TIMESTAMP, DEVICE varchar(64), TYPE varchar(64), EVENT varchar(512), READING varchar(64), VALUE varchar(128), UNIT varchar(32));
|
|
CREATE INDEX Search_Idx ON `history` (DEVICE, READING, TIMESTAMP);
|