user-feedback: document Lovable Cloud managed migration path
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- postgresql
- Domain
- databases, documentation
Research direction
Start in skills/supabase/SKILL.md, especially the “Supabase MCP Server” and “Making and Committing Schema Changes” sections. Add provider-routing guidance for Lovable Cloud, distinguish raw query_database execution from provider-native migrations, and document the stop condition when migration history cannot be recorded. Done means the reviewed migration path preserves provider authority and forbids direct edits to supabase_migrations.schema_migrations.
Written by the indexing model from the issue text.
Description
What happened
Task: Apply reviewed PostgreSQL migration files to a Supabase-compatible database owned and managed by a Lovable Cloud project, without Lovable Chat, external Supabase accounts, connectors, CLI login, credentials, dashboards, or projects.
Skill said: The Supabase skill routes schema changes to Supabase MCP execute_sql / apply_migration or Supabase CLI and does not explain how to preserve a third-party provider's database authority and migration history.
Observed: Lovable MCP query_database officially supports SQL reads, writes, and DDL, but an empirical reversible privilege-change probe executed successfully without adding any row to supabase_migrations.schema_migrations. The privileges were restored and the ledger remained unchanged. Therefore raw query_database is not a safe substitute for a provider migration operation when auditable provider history is required.
The only separately exposed apply_migration tool belonged to the external Supabase connector. Using it would violate the project's explicit provider boundary and may target a different project identity.
Expected: The skill should first identify the database owner/provider. For a Lovable-owned database it must not request or use external Supabase setup. It should distinguish raw SQL execution from a provider migration operation and stop if the connected provider does not expose the latter. It must not recommend fabricating or manually inserting migration-ledger rows.
Source
File: skills/supabase/SKILL.md
Section: Supabase MCP Server and Making and Committing Schema Changes
Fix suggestion
Add a “Provider-managed Supabase-compatible databases” routing section:
- Identify the authoritative provider before selecting a tool.
- If Lovable Cloud owns the database, use only the connected Lovable project; do not request Supabase credentials, OAuth, dashboard access, CLI login, or a separate project.
- Document that Lovable MCP
query_databasecan execute DDL but does not necessarily create provider migration-history entries. - Require a provider-native migration operation for source-controlled production migrations when ledger provenance is an acceptance gate.
- Apply exact reviewed files individually in dependency order, then verify schema and provider history after every operation.
- Never edit
supabase_migrations.schema_migrationsdirectly. - If only raw SQL is exposed, stop and report the missing provider capability rather than creating untraceable drift.
This preserves normal Supabase guidance while covering managed wrappers whose operational authority is not the Supabase MCP server itself.
- Dominant language
- TypeScript
- Stars
- 2.6k
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/agent-skills
-
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
supabase/agent-skills#586 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
supabase/agent-skills#585 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
supabase/agent-skills#583 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
supabase/agent-skills#582 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
supabase/agent-skills#581 ·
All issues in supabase/agent-skills
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100