diff --git a/scripts/sql/260_gitops_ssh.down.sql b/scripts/sql/260_gitops_ssh.down.sql new file mode 100644 index 0000000000..d923e8541f --- /dev/null +++ b/scripts/sql/260_gitops_ssh.down.sql @@ -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; \ No newline at end of file diff --git a/scripts/sql/260_gitops_ssh.up.sql b/scripts/sql/260_gitops_ssh.up.sql new file mode 100644 index 0000000000..9483cf6bfb --- /dev/null +++ b/scripts/sql/260_gitops_ssh.up.sql @@ -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; + +