Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/staging schema #298

Merged
merged 4 commits into from
Mar 25, 2025
Merged

fix/staging schema #298

merged 4 commits into from
Mar 25, 2025

Conversation

ff6347
Copy link
Collaborator

@ff6347 ff6347 commented Mar 24, 2025

This PR should fix some diff we have between staging and production env. Most important the rls migration that prevented the adoption of trees in the staging environment.

  • ci: update Supabase CLI version to 2.20.3 in workflows and .tool-versions
  • chore: update Supabase config to include schemas and search path
  • chore: update .gitignore to include mcp.json file
  • fix: add accumulated_weather_per_month function and fix RLS for trees_adopted

ff6347 added 4 commits March 24, 2025 16:36
…ions

- Bumped Supabase CLI version from 2.19.7 to 2.20.3 in both production and staging deployment workflows.
- Updated .tool-versions file accordingly.
…_adopted

- Recreated  SQL function `accumulated_weather_per_month` to aggregate weather data by month.
- Implemented a policy for authenticated users to select their own adoptions in the `trees_adopted` table.
- Dropped the previous policy allowing everyone to select all adoptions for better security.

These changes should fix a diff between staging and production
@ff6347 ff6347 requested a review from raphael-arce as a code owner March 24, 2025 15:38
Copy link

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
giessdenkiez-de-postgres-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 3:38pm

Copy link
Collaborator

@raphael-arce raphael-arce left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@ff6347 ff6347 merged commit 86aab39 into staging Mar 25, 2025
4 checks passed
@ff6347 ff6347 deleted the fix/staging-schema branch March 25, 2025 13:31
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.

2 participants