smithery.ai

manage-database

Manage application databases including local development and remote production environments.

First seen Mar 25, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,409 B
  • docs SUMMARY.md 115 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Database Management Skill

This skill details how to manage the application's database, including switching between local and remote environments and handling migrations.

Database Modes

1. Local Development (SQLite)

  • Setup: Set USELOCALDB=true in .env.
  • File: instance/luxury.db.
  • Use Case: Fast iteration, offline development.

2. Remote Production (Azure SQL)

  • Setup: Set USELOCALDB=false (or remove from .env).
  • Config: Requires DATABASE_URL with valid Azure SQL credentials.
  • Use Case: Integration testing, production deployment.

Common Tasks

1. Reset Database

  • Action: Delete instance/luxury.db and restart the app.
  • Note: app.py automatically calls db.create_all() on startup if tables are missing.
  • Warning: This erases all local data (users, products, orders).

2. Schema Changes

  • Detect: SQLAlchemy warnings (e.g., overlapping relationships).
  • Fix: Update models in app.py.
  • Apply: For SQLite, drop/recreate is easiest. For Azure, use migration scripts (not yet automated).

Relevant Files

  • app.py (Model definitions: User, Product, Order, OrderItem)
  • .env (Database configuration toggle)
  • instance/luxury.db (Local database file)