Skip to content

rrezartprebreza/spring-boot-skills / skills/spring-boot-4/flyway-migrations

flyway-migrations

Verified

Use when creating database migrations, schema changes, seed data, or any SQL that modifies database structure. Covers Flyway naming conventions, versioning, and safe migration patterns.

examples/good-migration-concurrent-index.sql

View on GitHub
-- GOOD — V5__index_orders_shipping_address.sql
-- CREATE INDEX CONCURRENTLY builds the index without blocking writes on PostgreSQL.
-- Two requirements, both verified against Flyway 12 + PostgreSQL:
--   1. This statement is ALONE in the file. Flyway runs it outside a transaction;
--      adding any other statement makes Flyway reject the whole migration.
--   2. spring.flyway.postgresql.transactional-lock=false — otherwise the index
--      build waits forever on Flyway's own advisory-lock transaction.
-- If a CONCURRENTLY build fails midway it leaves an INVALID index behind:
-- DROP INDEX CONCURRENTLY it and re-run, rather than editing this file.

CREATE INDEX CONCURRENTLY idx_orders_shipping_address
    ON orders (shipping_address)
    WHERE shipping_address IS NOT NULL;
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall