Skip to content

revert: drop slack_installations table - #15

Merged
sweetmantech merged 1 commit into
mainfrom
revert/remove-slack-installations
Mar 27, 2026
Merged

sweetmantech merged 1 commit into
mainfrom
revert/remove-slack-installations

Conversation

@sweetmantech

@sweetmantech sweetmantech commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Migration applies cleanly against current Supabase schema
  • Verify slack_installations table no longer exists after migration

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Revert
    • Removed database infrastructure for Slack integration support, including data storage, access controls, and related services.

The slack_installations migration (PR #14) was merged prematurely.
This migration drops the table, RLS policies, index, and trigger.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@supabase

supabase Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

Updates to Preview Branch (revert/remove-slack-installations) ↗︎

Deployments Status Updated
Database ✅ Fri, 27 Mar 2026 15:45:07 UTC
Services ✅ Fri, 27 Mar 2026 15:45:07 UTC
APIs ✅ Fri, 27 Mar 2026 15:45:07 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations ✅ Fri, 27 Mar 2026 15:45:14 UTC
Migrations ✅ Fri, 27 Mar 2026 15:45:18 UTC
Seeding ✅ Fri, 27 Mar 2026 15:45:18 UTC
Edge Functions ✅ Fri, 27 Mar 2026 15:45:18 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@coderabbitai

coderabbitai Bot commented Mar 27, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This pull request introduces a SQL revert migration that removes the public.slack_installations table and its associated database objects (trigger, row-level security policies, and index) that were created by a prior migration.

Changes

Cohort / File(s) Summary
Slack Installations Removal
supabase/migrations/20260328000000_drop_slack_installations.sql
New migration that conditionally drops the set_updated_at trigger, four RLS policies, the idx_slack_installations_organization_id index, and the public.slack_installations table using IF EXISTS clauses to prevent errors.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 With paws we wave goodbye, dear Slack,
Your installations fade to black,
The trigger freed, the policies unbound,
In revert's dance, no trace is found,
Clean schema hops await us back! 🗑️

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: reverting a prior migration by dropping the slack_installations table.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch revert/remove-slack-installations

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
supabase/migrations/20260328000000_drop_slack_installations.sql (1)

11-11: Optionally schema-qualify the index name for robustness.

DROP INDEX IF EXISTS public.idx_slack_installations_organization_id; is slightly safer against unexpected search_path differences during migration runs.

Suggested tweak
-DROP INDEX IF EXISTS idx_slack_installations_organization_id;
+DROP INDEX IF EXISTS public.idx_slack_installations_organization_id;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@supabase/migrations/20260328000000_drop_slack_installations.sql` at line 11,
Update the DROP INDEX statement to schema-qualify the index name so it is robust
to search_path differences: change usage of
idx_slack_installations_organization_id in the DROP INDEX IF EXISTS statement to
include the public schema (e.g., public.idx_slack_installations_organization_id)
so the migration always targets the intended index.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@supabase/migrations/20260328000000_drop_slack_installations.sql`:
- Line 11: Update the DROP INDEX statement to schema-qualify the index name so
it is robust to search_path differences: change usage of
idx_slack_installations_organization_id in the DROP INDEX IF EXISTS statement to
include the public schema (e.g., public.idx_slack_installations_organization_id)
so the migration always targets the intended index.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5428ea5e-b1c1-45f3-b06b-df6298249bc4

📥 Commits

Reviewing files that changed from the base of the PR and between 5b06ed5 and 6999b40.

📒 Files selected for processing (1)
  • supabase/migrations/20260328000000_drop_slack_installations.sql

@sweetmantech
sweetmantech merged commit a952927 into main Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant