|
@@ -1,13 +1,13 @@
|
1
|
|
-INSERT INTO var_value (type, address, value) VALUES
|
2
|
|
-('A', 10, 42),
|
3
|
|
-('A', 11, 24),
|
4
|
|
-('A', 10, 20),
|
5
|
|
-('A', 10, 0),
|
6
|
|
-('I', 5010, 42),
|
7
|
|
-('I', 5011, 24),
|
8
|
|
-('I', 5010, 20),
|
9
|
|
-('I', 5010, 0),
|
10
|
|
-('D', 10, 1),
|
11
|
|
-('D', 11, 1),
|
12
|
|
-('D', 10, 1),
|
13
|
|
-('D', 10, 0);
|
|
1
|
+INSERT INTO var_value (type, address, value, time) VALUES
|
|
2
|
+('A', 10, 42, strftime('%s', 'now')),
|
|
3
|
+('A', 11, 24, strftime('%s', datetime('now', '-1 hours'))),
|
|
4
|
+('A', 10, 20, strftime('%s', datetime('now', '-1 days'))),
|
|
5
|
+('A', 10, 0, strftime('%s', datetime('now', '-2 days'))),
|
|
6
|
+('I', 5010, 42, strftime('%s', datetime('now'))),
|
|
7
|
+('I', 5011, 24, strftime('%s', datetime('now'))),
|
|
8
|
+('I', 5010, 20, strftime('%s', datetime('now', '-1 hours'))),
|
|
9
|
+('I', 5010, 0, strftime('%s', datetime('now', '-2 days'))),
|
|
10
|
+('D', 10, 1, strftime('%s', datetime('now'))),
|
|
11
|
+('D', 11, 1, strftime('%s', datetime('now'))),
|
|
12
|
+('D', 10, 1, strftime('%s', datetime('now', '-1 days'))),
|
|
13
|
+('D', 10, 0, strftime('%s', datetime('now', '-2 days')));
|