feat(DB): file_key column refactored for multi-run

This commit is contained in:
Taha Yassine Kraiem 2022-10-31 11:09:49 +01:00
parent b9e1f30d57
commit 366b03161e
2 changed files with 8 additions and 6 deletions

View file

@ -60,6 +60,7 @@ BEGIN
END;
$$ LANGUAGE plpgsql;
ALTER TABLE sessions ADD file_key BYTEA NULL;
ALTER TABLE IF EXISTS sessions
ADD COLUMN IF NOT EXISTS file_key BYTEA DEFAULT NULL;
COMMIT;

View file

@ -545,11 +545,12 @@ $$
watchdogs_score bigint NOT NULL DEFAULT 0,
issue_score bigint NOT NULL DEFAULT 0,
issue_types issue_type[] NOT NULL DEFAULT '{}'::issue_type[],
utm_source text NULL DEFAULT NULL,
utm_medium text NULL DEFAULT NULL,
utm_campaign text NULL DEFAULT NULL,
referrer text NULL DEFAULT NULL,
base_referrer text NULL DEFAULT NULL,
utm_source text DEFAULT NULL,
utm_medium text DEFAULT NULL,
utm_campaign text DEFAULT NULL,
referrer text DEFAULT NULL,
base_referrer text DEFAULT NULL,
file_key bytea DEFAULT NULL,
metadata_1 text DEFAULT NULL,
metadata_2 text DEFAULT NULL,
metadata_3 text DEFAULT NULL,