Coding
TEXT
Database Migration Script Generator
October 2, 2025
Optimized for:
gpt-4o
Database migrations, schema changes, data migrations
Generate database migration script for [DATABASE: PostgreSQL/MySQL/MongoDB]. **Migration Type:** - [ ] Create table - [ ] Alter table - [ ] Add column - [ ] Drop column - [ ] Add index - [ ] Data migration **Details:** [DESCRIBE SCHEMA CHANGES] **Generate:** 1. **Up Migration** (apply changes) 2. **Down Migration** (rollback) 3. **Data Migration** (if needed) 4. **Validation Queries** **Requirements:** - Idempotent (can run multiple times safely) - Transaction-wrapped - Rollback-safe - Include comments - Handle edge cases - Test data examples - Performance considerations for large tables **Also provide:** - Pre-migration checklist - Post-migration validation - Backup recommendations
Safe database migration script generator with rollback support.
Submit your own AI prompts to the community. The best ones get featured on TokenCalculator - and credited to you.