perf: ✨ Update mod and admin permissions schema#712
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Code Review
This pull request refactors the database schema for administrator and moderator permissions by replacing the nested data JSONB column with flat unrestricted (boolean) and permissions (JSONB) columns across the codebase. A critical issue was identified in the migration script: dropping the data column directly without first copying its contents to the new columns will result in permanent data loss on existing databases. A SQL suggestion was provided to migrate the existing data before dropping the column.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Improving Documentation
pnpm lint:fixto fix formatting issues before opening the PR.Description
What?
Why?