summaryrefslogtreecommitdiff
path: root/pkg/database/sql
diff options
context:
space:
mode:
authorJulien Dessaux2024-10-16 00:17:12 +0200
committerJulien Dessaux2024-10-16 00:17:12 +0200
commit0e58781daa70300e22ea4abdc0c36be7fba08d7c (patch)
tree4f7d5f3b8bf225067b332b12149164298e883b64 /pkg/database/sql
parentchore(tfstated): simplify some code (diff)
downloadtfstated-0e58781daa70300e22ea4abdc0c36be7fba08d7c.tar.gz
tfstated-0e58781daa70300e22ea4abdc0c36be7fba08d7c.tar.bz2
tfstated-0e58781daa70300e22ea4abdc0c36be7fba08d7c.zip
feat(tfstated): preserve lock information in states versions
Diffstat (limited to 'pkg/database/sql')
-rw-r--r--pkg/database/sql/000_init.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/database/sql/000_init.sql b/pkg/database/sql/000_init.sql
index 08a58cd..9c9c07c 100644
--- a/pkg/database/sql/000_init.sql
+++ b/pkg/database/sql/000_init.sql
@@ -13,6 +13,7 @@ CREATE TABLE versions (
id INTEGER PRIMARY KEY,
state_id INTEGER,
data BLOB,
+ lock TEXT,
created INTEGER DEFAULT (unixepoch()),
FOREIGN KEY(state_id) REFERENCES states(id) ON DELETE CASCADE
) STRICT;