Files
paralus/persistence/migrations/admindb/000027_sentry_kubectl_cluster_settings.up.sql
Akshay Gaikwad d88c82e0df fix: re-running admindb migration fails (#205)
Make all admindb migration queries re-entrance so re-running migration
would not fail.

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
2023-04-28 14:21:32 +05:30

12 lines
526 B
SQL

CREATE TABLE IF NOT EXISTS sentry_kubectl_cluster_settings (
name varchar PRIMARY KEY,
organization_id uuid NOT NULL,
partner_id uuid NOT NULL,
disable_web_kubectl boolean NOT NULL DEFAULT FALSE,
disable_cli_kubectl boolean NOT NULL DEFAULT FALSE,
modified_at timestamp WITH time zone,
created_at timestamp WITH time zone NOT NULL,
deleted_at timestamp WITH time zone,
CONSTRAINT sentry_kubectl_cluster_settin_name_partner_id_organization__key UNIQUE (name, partner_id, organization_id)
);