Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
yonatangross avatar

Database Versioning

  • 12 installs
  • 213 repo stars
  • Updated August 4, 2026
  • yonatangross/orchestkit

Helps with databases tasks.

About

database-versioning is a Claude Code skill for databases. It helps developers move faster with AI-assisted coding.

  • database-versioning
  • Databases
  • AI-coding skill

Database Versioning by the numbers

  • 12 all-time installs (skills.sh)
  • Ranked #636 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/yonatangross/orchestkit --skill database-versioning

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs12
repo stars213
Last updatedAugust 4, 2026
Repositoryyonatangross/orchestkit

What it does

Helps with databases tasks.

Files

SKILL.mdMarkdownGitHub ↗

Database Versioning Patterns

Version control strategies for database schemas and data across environments.

Overview

  • Tracking schema changes over time
  • Coordinating database changes across dev/staging/prod
  • Implementing database audit trails
  • Managing stored procedures and functions
  • Versioning reference data

Schema Versioning Table

CREATE TABLE schema_version (
    version_id SERIAL PRIMARY KEY,
    version_number VARCHAR(20) NOT NULL,
    description TEXT NOT NULL,
    applied_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
    applied_by VARCHAR(100),
    execution_time_ms INTEGER,
    checksum VARCHAR(64),
    CONSTRAINT uq_version_number UNIQUE (version_number)
);

Semantic Versioning for Databases

MAJOR.MINOR.PATCH

MAJOR: Breaking changes (drop tables, rename columns)
MINOR: Backward-compatible additions (new tables, nullable columns)
PATCH: Bug fixes, index changes, data migrations

Detailed Guides

  • Audit trails: See references/audit-trails.md for row versioning, temporal tables, CDC
  • Environment coordination: See references/environment-coordination.md for multi-env flows, locks
  • Object versioning: See references/object-versioning.md for procedures, views, reference data
  • Migration testing: See references/migration-testing.md for pytest patterns

Best Practices

PracticeReason
Version everythingFull traceability
Immutable historyAudit compliance
Test rollbacksEnsure recoverability
Environment parityConsistent deployments
Checksum verificationDetect unauthorized changes

Anti-Patterns

# NEVER modify deployed migrations - create new migration instead

# NEVER delete migration history
command.stamp(alembic_config, "head")  # Loses history

# NEVER skip environments
# Always: local -> CI -> staging -> production

# NEVER version sensitive data in migrations
op.bulk_insert(users, [{"password": "secret"}])  # Security risk!

Capability Details

schema-versioning

Keywords: schema version, database version, migration history Solves: Track schema changes, version history

temporal-queries

Keywords: temporal, point-in-time, history query Solves: Query historical data, time-travel queries

change-tracking

Keywords: cdc, change data capture, audit log Solves: Track all changes, audit compliance

environment-sync

Keywords: environment sync, migration coordination Solves: Sync across environments, coordinate deployments

Related Skills

  • alembic-migrations - Migration implementation
  • database-schema-designer - Schema design
  • zero-downtime-migration - Safe production changes

Related skills

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.