From f72c01e8a8c77eab33c07ebe36d238348fe69e0f Mon Sep 17 00:00:00 2001 From: Travis Jenkins Date: Tue, 27 Aug 2024 15:24:58 -0400 Subject: [PATCH] Add two new columns to `connectors` for UI to show/hide properties (#1556) * Need to store what the default capture interval is for a connector * Adding in the ability to hide back fill with the table * Reverting migration from connectors * Moving the migration to be on connector tags instead of connectors * reverting as we'll put this on connector_tags * typo * switching type over the type to not require constraint updating name as requested * Moving from pending * Renaming after the merge --- supabase/migrations/06_connectors.sql | 1 - .../migrations/58_connector_tags_control_flags.sql | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 supabase/migrations/58_connector_tags_control_flags.sql diff --git a/supabase/migrations/06_connectors.sql b/supabase/migrations/06_connectors.sql index 98a0bd4120..46a6a8cd6d 100644 --- a/supabase/migrations/06_connectors.sql +++ b/supabase/migrations/06_connectors.sql @@ -102,4 +102,3 @@ grant select on table connector_tags to authenticated; create unique index idx_connector_tags_id_where_queued on connector_tags(id) where job_status->>'type' = 'queued'; - diff --git a/supabase/migrations/58_connector_tags_control_flags.sql b/supabase/migrations/58_connector_tags_control_flags.sql new file mode 100644 index 0000000000..702164ef4a --- /dev/null +++ b/supabase/migrations/58_connector_tags_control_flags.sql @@ -0,0 +1,11 @@ +begin; + +alter table connector_tags add column default_capture_interval interval; +comment on column connector_tags.default_capture_interval is + 'The default value for the interval property for a Capture. This is normally used for non-streaming connectors'; + +alter table connector_tags add column disable_backfill boolean not null default false; +comment on column connector_tags.disable_backfill is + 'Controls if the UI will hide the backfill button for a connector'; + +commit; \ No newline at end of file