Skip to content

docs(database): schema が 3 箇所に重複していることを明文化する (#295)#302

Merged
hideyukiMORI merged 1 commit into
mainfrom
docs/295-schema-3way-parity
May 21, 2026
Merged

docs(database): schema が 3 箇所に重複していることを明文化する (#295)#302
hideyukiMORI merged 1 commit into
mainfrom
docs/295-schema-3way-parity

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

Test plan

  • markdown rendering で section / list 構造が崩れない
  • 3 site 全ての存在を grep で再確認: `grep -rl 'CREATE TABLE.*users' docker/mysql/init/ cli/ class/xion/`

🤖 Generated with Claude Code

FT2 F-7 / PR #240 で documented した parity 注記は 2 箇所
(docker/mysql/init/001_schema.sql と cli/initSQLite.php) だけで、
class/xion/DatabaseInstaller.php (cli/setupDatabase.php が呼ぶ
canonical installer) が同じ schema を inline で保持している事実が
未記載だった (FT6 F-2)。

docs/development/docker.md の "Schema Parity Between SQLite and
MySQL" を 3-way に拡張し、各 site の役割 (initial volume init /
legacy CLI / canonical installer) を明示。新規 table を追加する
contributor は 3 箇所同時編集 + 両 runtime での verify が必要。

docs/review/database.md の self-review checklist 項目も
"both ... and ..." → "all three" に更新。

ADR-class な consolidation (PHP array で schema source 一元化等) は
本 PR では行わない。FT6 report で「將來の trial で再発したら ADR で
escalate」と記録済。

Closes #295.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit c76426f into main May 21, 2026
2 checks passed
@hideyukiMORI hideyukiMORI deleted the docs/295-schema-3way-parity branch May 21, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(database): schema が 3 箇所に重複していることを明文化する (F-2 from FT6)

1 participant