rrezartprebreza/spring-boot-skills / skills/spring-boot-3/flyway-migrations
flyway-migrations
VerifiedUse when creating database migrations, schema changes, seed data, or any SQL that modifies database structure. Covers Flyway naming conventions, versioning, and safe migration patterns.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.8 KB |
| agents/openai.yaml | config | 200 B |
| examples/bad-migration.sql | other | 848 B |
| examples/good-migration-concurrent-index.sql | other | 790 B |
| examples/good-migration.sql | other | 1.0 KB |
| templates/DevDataSeeder.java | other | 1.5 KB |
| templates/V1__create_table_template.sql | other | 1.3 KB |
examples/good-migration.sql
View on GitHub-- GOOD — V4__add_shipping_address_to_orders.sql
-- Correct double-underscore naming, nullable column, multi-step rename.
-- The index for shipping_address lives in its own file:
-- good-migration-concurrent-index.sql (V5). CREATE INDEX CONCURRENTLY must not
-- share a migration with other statements — Flyway rejects mixed migrations.
-- Step 1: Add nullable column (safe for existing data — no lock, no rewrite)
ALTER TABLE orders ADD COLUMN shipping_address TEXT;
-- Step 2: Multi-step column rename (safe approach)
-- Never use ALTER TABLE RENAME COLUMN directly — it breaks code mid-deploy
-- Instead: add new → backfill → deploy code reading both → drop old
-- (assumes a legacy full_name column from an earlier migration)
ALTER TABLE orders ADD COLUMN customer_name VARCHAR(255);
-- Step 3: Backfill from old column
UPDATE orders SET customer_name = full_name WHERE customer_name IS NULL;
-- Note: The DROP COLUMN for 'full_name' goes in a LATER migration
-- after all application code reads from 'customer_name'
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |