alembic-migration

Automate PostgreSQL schema changes with SQLAlchemy ORM and Alembic migrations.

1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/Nelkit/sydney-liveability-ai --skill alembic-migration-nelkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alembic-migration
Source: https://github.com/Nelkit/sydney-liveability-ai/tree/main/.copilot/skills/alembic-migration
Command: npx skills add https://github.com/Nelkit/sydney-liveability-ai --skill alembic-migration-nelkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlalchemy, alembic, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of making changes to the database schema using Alembic migrations, ensuring consistent updates across your development team.

Core Features & Use Cases

  • Field Modification: Add or alter database fields in SQLAlchemy ORM models.
  • Migration Generation: Automatically create Alembic migration scripts for schema changes.
  • Application: Ideal for backend database schema updates and maintaining database integrity.
  • Use Case: When you need to add a new field to an existing table, you can use this Skill to generate the migration script and apply it to the database.

Quick Start

Run the alembic-migration skill to add a new field to the 'osm_scores' table.

Frequently Asked Questions about alembic-migration

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

FAQPage Schema
How do I generate an Alembic migration script for a new database field in SQLAlchemy?

To generate an Alembic migration for a new database field, you modify your SQLAlchemy ORM models and run a command to automatically create the migration script. This script captures the schema changes needed to add or alter the field.

What is the process for updating a PostgreSQL schema using Alembic?

Updating a PostgreSQL schema with Alembic involves defining changes in SQLAlchemy ORM models, generating a versioned migration script, and applying it to the database. This ensures structured and consistent schema updates across environments.

Do I need SQLAlchemy installed to use Alembic for database migrations?

Yes, you need SQLAlchemy installed because Alembic relies on it to manage database schema versions. Alembic uses SQLAlchemy ORM models to detect schema changes and generate the corresponding migration scripts for your database.

Can I use Alembic to alter existing fields in a PostgreSQL database?

Yes, you can use Alembic to alter existing fields in a PostgreSQL database. By updating your SQLAlchemy ORM model definitions, Alembic can generate the necessary migration scripts to apply those schema modifications to the database.

What is the best way to manage database schema updates across a development team?

The best way to manage database schema updates across a team is using Alembic migrations with SQLAlchemy. By tracking schema changes in versioned migration scripts, you ensure all developers apply consistent database modifications.

Why should I use Alembic instead of directly modifying a PostgreSQL database schema?

You should use Alembic instead of directly modifying a PostgreSQL schema to maintain version control over database changes. Alembic automates migration script generation from SQLAlchemy models, ensuring structured, reversible, and consistent schema updates.