altair823
|
06a1caf2bd
|
feat(v029): m004 마이그레이션 — status/status_changed_at/move_reason 컬럼
- notes 테이블 ADD COLUMN status (DEFAULT 'active'), status_changed_at, move_reason
- deleted_at != NULL 노트 → status='trashed' + status_changed_at=deleted_at 로 backfill
- index.ts registry 에 m004 추가 (runMigrations 자동 적용)
- migrations.test.ts user_version assertion 4 로 갱신
|
2026-05-09 15:27:15 +09:00 |
|
altair823
|
114e971518
|
feat(db): v1 schema with user_intent + edited flags
Task 6 of the slice plan. Adds the initial database surface:
- m001_initial: notes (with v0.2 columns user_intent,
intent_prompted_at, title_edited_by_user,
summary_edited_by_user), tags, note_tags (with source ai/user),
media, pending_jobs.
- migrations/index: forward-only PRAGMA user_version runner that
applies pending migrations inside a single transaction.
- db/index: openDb() that opens better-sqlite3, enables WAL +
foreign_keys, then runs migrations.
- migrations.test: schema columns are present at v1; runMigrations
is idempotent.
Verification: `npx vitest run tests/unit/migrations.test.ts`
2 passed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-25 12:02:04 +09:00 |
|