[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aaafcbdf-7a4d-479f-8eb3-82cec1cde4f4":3,"$fI7u6PMctFwHA967Qtgg0_2lRsLrrGj8qnUMfSequYa8":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"aaafcbdf-7a4d-479f-8eb3-82cec1cde4f4","database-migrations-sql-migrations","SQL数据库迁移，针对PostgreSQL、MySQL和SQL Server的零停机策略。关注数据完整性和回滚计划。","cat_coding_backend","mod_coding","sickn33,coding","---\nname: database-migrations-sql-migrations\ndescription: \"SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, and SQL Server. Focus on data integrity and rollback plans.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# SQL Database Migration Strategy and Implementation\n\n## Overview\n\nYou are a SQL database migration expert specializing in zero-downtime deployments, data integrity, and production-ready migration strategies for PostgreSQL, MySQL, and SQL Server. Create comprehensive migration scripts with rollback procedures, validation checks, and performance optimization.\n\n## When to Use This Skill\n\n- Use when working on SQL database migration strategy and implementation tasks.\n- Use when needing guidance, best practices, or checklists for zero-downtime migrations.\n- Use when designing rollback procedures for critical schema changes.\n\n## Do Not Use This Skill When\n\n- The task is unrelated to SQL database migration strategy.\n- You need a different domain or tool outside this scope.\n\n## Context\n\nThe user needs SQL database migrations that ensure data integrity, minimize downtime, and provide safe rollback options. Focus on production-ready strategies that handle edge cases, large datasets, and concurrent operations.\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, suggest checking implementation playbooks.\n\n## Output Format\n\n1. **Migration Analysis Report**: Detailed breakdown of changes\n2. **Zero-Downtime Implementation Plan**: Expand-contract or blue-green strategy\n3. **Migration Scripts**: Version-controlled SQL with framework integration\n4. **Validation Suite**: Pre and post-migration checks\n5. **Rollback Procedures**: Automated and manual rollback scripts\n6. **Performance Optimization**: Batch processing, parallel execution\n7. **Monitoring Integration**: Progress tracking and alerting\n\n## Resources\n\n- Focus on production-ready SQL migrations with zero-downtime deployment strategies, comprehensive validation, and enterprise-grade safety mechanisms.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,242,1675,"2026-05-16 13:14:20",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"后端开发","backend","mdi-server","API、数据库、服务端架构",296,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"77059599-88dd-4205-803b-9c4726cb680c","1.0.0","database-migrations-sql-migrations.zip",6259,"uploads\u002Fskills\u002Faaafcbdf-7a4d-479f-8eb3-82cec1cde4f4\u002Fdatabase-migrations-sql-migrations.zip","6be525ce946a1b4b35dd733cff7b87e3f6b2c3a4cd167fa66e90b4d33006e693","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2502},{\"path\":\"resources\u002Fimplementation-playbook.md\",\"isDirectory\":false,\"size\":14495}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]