mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 17:30:56 +08:00
withdrawn_at was added only in db/schema.sql. db/db.go says new DDL goes in a numbered migration, so the change is now recorded in schema_migrations as 0012_lesson_withdrawn.sql (0011 is the last migration on main). The column and its ALTER ... IF NOT EXISTS stay in schema.sql, the idempotent base, as main does for report_state. The test builds a database without the column and without the 0012 row, holding an adopted lesson with two evidence rows. Open adds a nullable TIMESTAMPTZ with no default, keeps both rows live, and records 0012; a second Open changes nothing.