feat(tfstated): store created and updated timestamps for states
This commit is contained in:
parent
afc2c2eb9f
commit
aef0b00fb9
2 changed files with 15 additions and 5 deletions
|
@ -26,7 +26,9 @@ CREATE TABLE sessions (
|
|||
CREATE TABLE states (
|
||||
id INTEGER PRIMARY KEY,
|
||||
path TEXT NOT NULL,
|
||||
lock TEXT
|
||||
lock TEXT,
|
||||
created INTEGER DEFAULT (unixepoch()),
|
||||
updated INTEGER DEFAULT (unixepoch())
|
||||
) STRICT;
|
||||
CREATE UNIQUE INDEX states_path on states(path);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue