Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/sql/260_gitops_ssh.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE public.gitops_config DROP COLUMN IF EXISTS ssh_key;
ALTER TABLE public.gitops_config DROP COLUMN IF EXISTS auth_mode;
ALTER TABLE public.gitops_config ALTER COLUMN "token" SET NOT NULL;
ALTER TABLE public.gitops_config ALTER COLUMN "host" SET NOT NULL;
ALTER TABLE public.gitops_config DROP COLUMN IF EXISTS ssh_host;
7 changes: 7 additions & 0 deletions scripts/sql/260_gitops_ssh.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE public.gitops_config ADD COLUMN IF NOT EXISTS ssh_key text;
ALTER TABLE public.gitops_config ADD COLUMN IF NOT EXISTS auth_mode text;
ALTER TABLE public.gitops_config ALTER COLUMN "token" DROP NOT NULL;
ALTER TABLE public.gitops_config ALTER COLUMN "host" DROP NOT NULL;
ALTER TABLE public.gitops_config ADD ssh_host varchar(250) NULL;