Commit Graph
9 Commits
Author SHA1 Message Date
QiuSW bd386cfae4 fix(syb): 修正规格颜色尺码反序 (#216) 2026-09-04 19:33:35 +08:00
QiuSW 2a44b50a53 docs(#114): upgrade DevHarness workflow baseline 2026-08-27 17:44:39 +08:00
QiuSW 791f90c6c5 docs(#76): 精简单人开发工作流 2026-08-24 16:27:55 +08:00
QiuSWandClaude Opus 5 e6f533b71e fix(#48): add the missing version-local migration for syb_session
Adding SYBSession to migrations.Migrate was not enough. Schema reaches an
existing database only through a version-local file; with the previous
version already recorded in sys_migration, Migrate never re-ran and the
table simply never appeared. The unit tests build a fresh database every
time, so they stayed green while the real database was missing a table —
which surfaced as "Error 1146: Table 'goauto.syb_session' doesn't exist"
on the first import attempt.

server/.gitignore was hiding these files. go-admin ignores version-local
because it is where generated local migrations land, but every GoAuto
migration belongs in version control; the existing ones had been forced
in with `git add -f`. Un-ignoring *.go there also recovers four migrations
that were never committed at all — 1786700000000 through 1786700300000,
covering the base schema, device registration, heartbeat and collection
execution. A fresh clone could not have built a working database.

Guard the class of mistake rather than just this instance:

  - migrations.VerifyTables checks every model's table after migrating and
    names what is missing along with the fix.
  - The migrate command runs it, so the failure lands at migrate time
    instead of at the first request that needs the table.
  - initDB no longer discards migrateModel's error. Upstream had
    `_ = migrateModel()` followed by an unconditional "初始化成功", so a
    failed migration reported success and the launcher believed it.

Also records the two-step rule in Common-Changes: a new model needs both
the model registration and a new version file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 10:10:11 +08:00
QiuSWandClaude Opus 5 0d623d8e7b docs(#47): unify harness command references
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 09:23:02 +08:00
QiuSWandClaude Opus 5 f8d0011057 docs(#47): mirror harness command entry changes
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-19 09:20:32 +08:00
QiuSW 10966c5c25 docs: generate Wiki mirrors (#43) 2026-08-17 11:30:44 +08:00
QiuSW a4ac398ca0 docs: prepare Wiki-first migration (#43) 2026-08-17 11:27:09 +08:00
QiuSW 6949e53968 feat: establish GoAuto MVP baseline (#19) 2026-08-15 14:24:45 +08:00