Skip to content

chore(database): drop youtube_tokens table#22

Open
arpitgupta1214 wants to merge 1 commit intomainfrom
chore/drop-youtube-tokens
Open

chore(database): drop youtube_tokens table#22
arpitgupta1214 wants to merge 1 commit intomainfrom
chore/drop-youtube-tokens

Conversation

@arpitgupta1214
Copy link
Copy Markdown
Collaborator

@arpitgupta1214 arpitgupta1214 commented May 7, 2026

Summary

YouTube auth fully migrated to Composio (chat#1719, api#494). The youtube_tokens table is no longer read or written; CASCADE cleans up the trigger, indexes, RLS policy, and FK to accounts.

Test plan

  • Apply migration on a Supabase preview branch
  • Verify youtube_tokens is gone (\d youtube_tokens)
  • Confirm chat YouTube connect/disconnect still works against the preview project
  • Run pnpm update-types in chat/api/tasks against the migrated project; ship the regen as follow-up PRs

🤖 Generated with Claude Code


Summary by cubic

Drop the legacy youtube_tokens table now that YouTube auth is fully handled by Composio. CASCADE removes the table and its trigger, indexes, RLS policy, and FKs to keep the schema clean.

  • Migration
    • Apply the Supabase migration on a preview branch.
    • Confirm youtube_tokens is gone.
    • Verify YouTube connect/disconnect still works against the preview project.
    • Regenerate DB types with pnpm update-types in chat/api/tasks (follow-up PRs).

Written for commit 4cb004f. Summary will update on new commits.

YouTube auth fully migrated to Composio in chat#1719 / api#494 — the table
is no longer read or written. CASCADE drops the table along with its
trigger, indexes, RLS policy, and FK to accounts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Warning

Rate limit exceeded

@arpitgupta1214 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 49 minutes and 11 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 387a77ab-55e6-408b-a276-203462826c3a

📥 Commits

Reviewing files that changed from the base of the PR and between 8341939 and 4cb004f.

📒 Files selected for processing (1)
  • supabase/migrations/20260507000000_drop_youtube_tokens.sql
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/drop-youtube-tokens

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.

@supabase
Copy link
Copy Markdown

supabase Bot commented May 7, 2026

Updates to Preview Branch (chore/drop-youtube-tokens) ↗︎

Deployments Status Updated
Database Thu, 07 May 2026 06:04:00 UTC
Services Thu, 07 May 2026 06:04:00 UTC
APIs Thu, 07 May 2026 06:04:00 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 Thu, 07 May 2026 06:04:06 UTC
Migrations Thu, 07 May 2026 06:04:08 UTC
Seeding Thu, 07 May 2026 06:04:11 UTC
Edge Functions Thu, 07 May 2026 06:04:11 UTC

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

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

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