@toren-run/core 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/migrate.js +7 -0
- package/package.json +1 -1
package/dist/migrate.js
CHANGED
|
@@ -124,6 +124,13 @@ CREATE TABLE IF NOT EXISTS toren_control.run_watchers (
|
|
|
124
124
|
settled boolean NOT NULL DEFAULT false
|
|
125
125
|
);
|
|
126
126
|
CREATE INDEX IF NOT EXISTS run_watchers_open_idx ON toren_control.run_watchers (agent) WHERE NOT settled;
|
|
127
|
+
CREATE TABLE IF NOT EXISTS toren_control.workers (
|
|
128
|
+
worker_id text PRIMARY KEY,
|
|
129
|
+
version text NOT NULL,
|
|
130
|
+
hostname text,
|
|
131
|
+
started_at timestamptz NOT NULL DEFAULT now(),
|
|
132
|
+
last_seen_at timestamptz NOT NULL DEFAULT now()
|
|
133
|
+
);
|
|
127
134
|
CREATE TABLE IF NOT EXISTS toren_control.sandboxes (
|
|
128
135
|
run_id uuid PRIMARY KEY,
|
|
129
136
|
provider text NOT NULL,
|