From 4de302685a29bfb29eea309dea776287d8e075a6 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Wed, 20 Nov 2024 15:42:29 +0800 Subject: [PATCH] chore: update secret table columns type --- .../next-1731901231-add-saml-application-secrets-table.ts | 4 ++-- packages/schemas/tables/saml_application_secrets.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/schemas/alterations/next-1731901231-add-saml-application-secrets-table.ts b/packages/schemas/alterations/next-1731901231-add-saml-application-secrets-table.ts index 28aef8f7d83..165b73a284a 100644 --- a/packages/schemas/alterations/next-1731901231-add-saml-application-secrets-table.ts +++ b/packages/schemas/alterations/next-1731901231-add-saml-application-secrets-table.ts @@ -13,8 +13,8 @@ const alteration: AlterationScript = { references tenants (id) on update cascade on delete cascade, application_id varchar(21) not null references applications (id) on update cascade on delete cascade, - private_key varchar not null, - certificate varchar not null, + private_key text not null, + certificate text not null, created_at timestamptz not null default now(), expires_at timestamptz not null, active boolean not null, diff --git a/packages/schemas/tables/saml_application_secrets.sql b/packages/schemas/tables/saml_application_secrets.sql index 8725ab1d8c9..4a9c7825722 100644 --- a/packages/schemas/tables/saml_application_secrets.sql +++ b/packages/schemas/tables/saml_application_secrets.sql @@ -6,8 +6,8 @@ create table saml_application_secrets ( references tenants (id) on update cascade on delete cascade, application_id varchar(21) not null references applications (id) on update cascade on delete cascade, - private_key varchar not null, - certificate varchar not null, + private_key text not null, + certificate text not null, created_at timestamptz not null default now(), expires_at timestamptz not null, active boolean not null,