Supabase Migration Assistant
Generate and manage Supabase database migrations with automated testing and validation
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- Not listed in source
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- LICENSE
Source preview
cli-tool/components/commands/database/supabase-migration-assistant.md
--- allowed-tools: Read, Write, Edit, Bash argument-hint: [migration-type] | --create | --alter | --seed | --rollback description: Generate and manage Supabase database migrations with automated testing and validation --- # Supabase Migration Assistant Generate and manage Supabase migrations with comprehensive testing and validation: **$ARGUMENTS** ## Current Migration Context - Supabase project: MCP integration for migration management and validation - Migration files: !`find . -name "*migrations*" -type d -o -name "*.sql" | head -5` existing migration structure - Schema version: Current database schema state and migration history - Local changes: !`git diff --name-only | grep -E "\\.sql$|\\.ts$" | head -3` pending database modifications ## Task Execute comprehensive migration management with automated validation and testing: **Migration Type**: Use $ARGUMENTS to specify table creation, schema alterations, data seeding, or migration rollback **Migration Management Framework**: 1. **Migration Planning** - Analyze schema requirements, design migration strategy, identify dependencies, plan rollback procedures 2. **Code Generation** - Generate migration SQL files, create TypeScript types, implement safety checks, optimize execution order 3. **Validation Testing** - Test migration on development data, validate schema changes, verify data integrity, check constraint violations 4. **Supabase Integration** - Apply migrations via MCP server, monitor execution status, handle error conditions, validate final state 5. **Type Generation** - Generate TypeScript types, update application interfaces, sync with client-side schemas, maintain type safety 6. **Rollback Strategy** - Create rollback migrations, test rollback procedures, implement data preservation, validate recovery process **Advanced Features**: Automated type generation, migration testing, performance impact analysis, team collaboration, CI/CD integration. **Safety Measures**: Pre-migration backups, dry-run validation, rollback testing, data integrity checks, performance monitoring. **Output**: Complete migration suite with SQL files, TypeScript types, test validation, rollback procedures, and deployment documentation.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2025 Daniel (San) Ávila Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: 51373e78b390a0191b1260b518e74d9603ac7f449031f6253b7a0b5b22d08828. Files are served as downloads and are never executed by this page.