feat(tfstated): store created and updated timestamps for states

This commit is contained in:
Julien Dessaux 2025-01-12 00:15:52 +01:00
parent afc2c2eb9f
commit aef0b00fb9
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 15 additions and 5 deletions

View file

@ -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);