db-migrations

Manage PostgreSQL schema lifecycles with versioned Flyway migrations and HikariCP pooling.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill db-migrations-agnaldo4j
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migrations
Source: https://github.com/agnaldo4j/kanban-vision-api-kt/tree/main/.claude/skills/db-migrations
Command: npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill db-migrations-agnaldo4j

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires org.flywaydb:flyway-core, org.flywaydb:flyway-database-postgresql, com.zaxxer:HikariCP, org.postgresql:postgresql.

What problem does it solve?

This skill addresses the risks of manual, error-prone database schema changes by providing a structured, versioned approach to PostgreSQL migrations using Flyway, ensuring consistency across development, staging, and production environments.

Core Features & Use Cases

  • Versioned Migrations: Tracks schema history via the flyway_schema_history table, preventing drift and ensuring reproducible deployments.
  • Production-Ready Configuration: Provides best practices for HikariCP connection pooling, SSL enforcement, and PostgreSQL-specific performance tuning.
  • Use Case: When adding a new feature that requires a table schema change, use this skill to generate a versioned SQL migration file that safely applies the change without disrupting existing data or violating quality constraints.

Quick Start

Use the db-migrations skill to generate a new versioned SQL file for adding a new column to the boards table following the project naming conventions.

Frequently Asked Questions about db-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage PostgreSQL schema migrations safely in a Kotlin Ktor application?

PostgreSQL schema migrations are managed safely in Kotlin Ktor by applying versioned Flyway SQL files tracked through a schema history table, ensuring consistent and reproducible deployments across environments without manual DDL errors.

What is the best way to configure HikariCP connection pooling for PostgreSQL migrations?

HikariCP connection pooling for PostgreSQL migrations is configured using production-ready best practices that enforce SSL and apply PostgreSQL-specific performance tuning, ensuring reliable database access during schema evolution.

Does Flyway support idempotent DDL and concurrent indexing for high-availability PostgreSQL?

Flyway supports idempotent DDL and concurrent indexing for high-availability PostgreSQL by implementing robust migration strategies with transaction management, allowing safe schema changes without disrupting existing data.

How do I generate a versioned SQL migration file to add a new column to an existing table?

Generating a versioned SQL migration file to add a new column involves creating a tracked Flyway script following project naming conventions, which safely applies the schema change while preventing database drift.

Why use versioned database migrations instead of manual schema changes in PostgreSQL?

Versioned database migrations are used instead of manual PostgreSQL schema changes to eliminate error-prone updates, enforce auditability via a schema history table, and guarantee consistent state across development and production.

Can I enforce SSL and prevent schema drift when applying Flyway migrations to PostgreSQL?

SSL enforcement and schema drift prevention are supported when applying Flyway migrations to PostgreSQL by tracking all changes in the flyway_schema_history table and utilizing production-grade HikariCP connection configurations.