eng-add-drift-table-or-migration

Manage SQLite/Drift schema changes and migrations with integrity checks.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/zakariaf/Hifz-Companion --skill eng-add-drift-table-or-migration
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: eng-add-drift-table-or-migration
Source: https://github.com/zakariaf/Hifz-Companion/tree/main/.claude/skills/eng-add-drift-table-or-migration
Command: npx skills add https://github.com/zakariaf/Hifz-Companion --skill eng-add-drift-table-or-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drift, sqlite3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach to modify Hifz Companion's local SQLite/Drift schema, ensuring database integrity and consistency across schema changes and migrations.

Core Features & Use Cases

  • Schema Changes: Add or alter tables, columns, indices, or CHECK constraints.
  • Migrations: Write versioned step-by-step migrations for schema evolution.
  • Transactions: Ensure transactional integrity and crash-safety with WAL and synchronous=FULL.
  • Use Case: When you need to update the database schema, this skill guides you through adding a new table for user data, modifying an existing column, or creating a new index.

Quick Start

Use the eng-add-drift-table-or-migration skill to add a new user table to the Hifz Companion database.

Frequently Asked Questions about eng-add-drift-table-or-migration

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

FAQPage Schema
How do I add a new table to a Drift SQLite database?▼

To add a new table to a Drift SQLite database, you write a versioned migration with step-by-step instructions to define the schema and run integrity checks to ensure consistency. This process handles table creation safely within a transaction.

What is the best way to manage SQLite schema changes using Drift migrations?▼

Managing SQLite schema changes with Drift migrations involves writing versioned, step-by-step migrations that handle adding tables, columns, indices, and CHECK constraints. This structured approach ensures database integrity and consistency across schema evolutions.

Do I need sqlite3 and drift dependencies to alter a local database schema?▼

Yes, you need both the drift and sqlite3 dependencies to manipulate the local database schema. These dependencies provide the necessary frameworks to execute schema changes and manage migrations effectively.

How does Drift ensure transactional integrity during database migrations?▼

Drift ensures transactional integrity and crash-safety during database migrations by utilizing Write-Ahead Logging (WAL) and setting synchronous=FULL. This guarantees that schema changes are applied safely without corrupting the database.

Can I add CHECK constraints when modifying an existing SQLite table column?▼

Yes, you can add CHECK constraints when modifying an existing SQLite table column through a versioned Drift migration. The process guides you through altering the schema and verifying migration integrity step-by-step.