bknd-modify-schema
Installation
SKILL.md
Modify Schema
Modify existing schema in Bknd: rename entities/fields, change field types, or alter constraints.
Prerequisites
- Existing Bknd app with entities (see
bknd-create-entity) - For code mode: Access to
bknd.config.ts - Backup your database before destructive changes
Critical Concept: Destructive vs Non-Destructive Changes
Bknd's schema sync detects differences between your code and database. Some changes are safe; others cause data loss.
Non-Destructive (Safe)
- Adding new entities
- Adding new fields (nullable or with default)
- Adding new indices
- Loosening constraints (removing
.required())