implementation-lokstra-create-migrations

Community

Generate SQL migrations for multi-database schemas

Authorprimadi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps automate the creation of SQL migration files to evolve database schemas, generating both .up.sql and .down.sql files using the Lokstra CLI. It supports single and multi-database configurations guided by a migration.yaml setup.

Core Features & Use Cases

  • Auto-versioned migrations: Create ordered up/down scripts that track schema changes over time.
  • Multi-database friendly: Manage migrations for multiple pools with per-folder migration.yaml configuration.
  • CLI-driven workflow: Integrates with lokstra migration commands to apply, rollback, and status migrations.

Quick Start

Use the lokstra CLI to generate and manage migrations within your project’s migrations directory. lokstra migration create create_users_table lokstra migration up lokstra migration status

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: implementation-lokstra-create-migrations
Download link: https://github.com/primadi/lokstra/archive/main.zip#implementation-lokstra-create-migrations

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.