database-migrations

Manage versioned SQLite schema migrations for C# projects.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/espensev/ai-skills --skill database-migrations-espensev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/espensev/ai-skills/tree/main/gemini-skills/skills/database-migrations
Command: npx skills add https://github.com/espensev/ai-skills --skill database-migrations-espensev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Direct SQLite access in C# apps often leads to uncontrolled schema changes that can break runtime behavior. This skill emphasizes safe, versioned migrations and testing to keep data integrity across deployments.

Core Features & Use Cases

  • Migration scripting: create and manage versioned SQL scripts (e.g., 001_initial.sql, 002_add_columns.sql) embedded or shipped with the app.
  • Testing & validation: verify migrations against in-memory or temporary databases to ensure data integrity before rollout.
  • Deployment discipline: coordinate migrations with application startup, ensuring deterministic schema state across environments.

Quick Start

Run the migration tooling to generate and apply migrations for your SQLite schema in a C# project.

Frequently Asked Questions about database-migrations

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

FAQPage Schema
How do I manage SQLite schema migrations in a C# application?

Manage SQLite schema migrations by applying versioned SQL scripts during application startup. This coordinates deterministic schema state across development, staging, and production deployments while enforcing data integrity.

What is the best way to test SQLite database migrations before deployment?

Test SQLite database migrations by validating versioned SQL scripts against in-memory or temporary databases. This verifies data integrity and ensures safe rollout before applying changes to production environments.

Can I use EF Core migrations with direct SQLite access in C# apps?

Yes, SQLite schema migrations support both embedded SQL scripts and EF Core migrations. This accommodates direct SQLite usage within C# apps to ensure safe, versioned changes across all deployment environments.

How do I version SQLite schema changes for reliable C# deployment?

Version SQLite schema changes by creating and managing numbered SQL scripts like 001_initial.sql, embedded or shipped with the app. This enforces migration scripting for deterministic schema state across environments.

Why do uncontrolled SQLite schema changes break C# app runtime behavior?

Uncontrolled SQLite schema changes break runtime behavior because direct database access lacks versioned coordination. Enforcing versioned migrations and in-memory validation ensures data integrity and prevents runtime failures across deployments.