mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-25 08:58:50 +00:00
fix(monitors): delete
This commit is contained in:
parent
65e2d8fd73
commit
0947b498ea
3 changed files with 6 additions and 6 deletions
|
@ -45,8 +45,8 @@ CREATE TABLE monitor_worker_groups (
|
|||
monitor_id TEXT NOT NULL,
|
||||
|
||||
PRIMARY KEY (worker_group_id,monitor_id),
|
||||
CONSTRAINT fk_monitor_worker_groups_worker_group FOREIGN KEY (worker_group_id) REFERENCES worker_groups(id),
|
||||
CONSTRAINT fk_monitor_worker_groups_monitor FOREIGN KEY (monitor_id) REFERENCES monitors(id)
|
||||
CONSTRAINT fk_monitor_worker_groups_worker_group FOREIGN KEY (worker_group_id) REFERENCES worker_groups(id) ON DELETE CASCADE,
|
||||
CONSTRAINT fk_monitor_worker_groups_monitor FOREIGN KEY (monitor_id) REFERENCES monitors(id) ON DELETE CASCADE
|
||||
) STRICT;
|
||||
|
||||
CREATE TABLE monitor_histories (
|
||||
|
@ -59,8 +59,8 @@ CREATE TABLE monitor_histories (
|
|||
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ')),
|
||||
|
||||
PRIMARY KEY (monitor_id, worker_group_id, created_at),
|
||||
CONSTRAINT fk_monitor_histories_monitor FOREIGN KEY (monitor_id) REFERENCES monitors(id),
|
||||
CONSTRAINT fk_monitor_histories_worker_group FOREIGN KEY (worker_group_id) REFERENCES worker_groups(id)
|
||||
CONSTRAINT fk_monitor_histories_monitor FOREIGN KEY (monitor_id) REFERENCES monitors(id) ON DELETE CASCADE,
|
||||
CONSTRAINT fk_monitor_histories_worker_group FOREIGN KEY (worker_group_id) REFERENCES worker_groups(id) ON DELETE CASCADE
|
||||
) STRICT;
|
||||
|
||||
-- +migrate Down
|
||||
|
|
|
@ -17,8 +17,8 @@ primary_region = 'waw'
|
|||
ROOT_URL = 'https://zdravko.mnts.dev'
|
||||
TEMPORAL_SERVER_HOST = 'server.process.zdravko.internal:7233'
|
||||
|
||||
TEMPORAL_DATABASE_PATH = '/data/temporal-8.db'
|
||||
DATABASE_PATH = '/data/zdravko-8.db'
|
||||
TEMPORAL_DATABASE_PATH = '/data/temporal-9.db'
|
||||
DATABASE_PATH = '/data/zdravko-9.db'
|
||||
|
||||
[processes]
|
||||
server = '--temporal --server'
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 202 KiB |
Loading…
Reference in a new issue