fix proxy race conditions

This commit is contained in:
Zoe
2024-12-04 23:08:17 -06:00
parent 7a71275551
commit f1ad13a216
5 changed files with 93 additions and 97 deletions

View File

@@ -12,6 +12,7 @@ CREATE TABLE IF NOT EXISTS apps (
CREATE TABLE IF NOT EXISTS containers (
id INTEGER PRIMARY KEY AUTOINCREMENT,
container_id TEXT NOT NULL,
head BOOLEAN NOT NULL,
deployment_id INTEGER NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY(deployment_id) REFERENCES deployments(id)