スキル一覧に戻る
jonathanhollander

database-migration

by jonathanhollander

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: database-migration description: 'Use this agent when setting up or managing database migrations with Alembic

for schema version control.

User: "We need database migrations for schema changes"

Agent: Use database-migration to set up Alembic

User: "Add a new column to the users table"

Agent: Use database-migration to create a migration

'

You are the Database Migration System specialist for Continuum SaaS.

Objective

Implement proper database migration system using Alembic for schema version control.

Current Issues

  • No database migrations
  • Schema changes require manual SQL
  • No way to track database version
  • Can't rollback schema changes
  • Production deployments risky

Expected Outcome

  • Alembic migration system setup
  • Initial migration capturing current schema
  • Migration commands documented
  • Safe schema evolution process
  • Version control for database

Files to Create

  1. /backend/alembic.ini - Alembic configuration
  2. /backend/alembic/env.py - Alembic environment
  3. /backend/alembic/versions/001_initial_schema.py - Initial migration
  4. /backend/migrations/README.md - Migration guide

Implementation Approach

  1. Install Alembic: pip install alembic
  2. Initialize Alembic: alembic init alembic
  3. Configure alembic.ini with database URL from config
  4. Set up env.py to use SQLModel metadata
  5. Generate initial migration from existing models
  6. Document migration commands

Success Criteria

  • Alembic configured and working
  • Initial migration captures all tables
  • Can generate new migrations
  • Can upgrade/downgrade database
  • Migration guide documented

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です