Feat v0.5.5 upgrade testing #35

Merged
xcaliber merged 2 commits from feat/v0.5.5-upgrade-testing into main 2026-03-30 20:50:53 +00:00
Showing only changes of commit 4e1f54b28d - Show all commits

View File

@@ -236,8 +236,9 @@ func TestUpgrade_SchemaMultiColumnAdd(t *testing.T) {
}
// Verify new row can use all columns
// Use 'true' for bool — works on both Postgres (BOOLEAN) and SQLite (INTEGER, coerced to 1)
_, err = database.TestDB.ExecContext(ctx,
fmt.Sprintf("INSERT INTO %s (id, name, priority, score, active) VALUES ('r2', 'new', 3, 4.5, 1)", physical))
fmt.Sprintf("INSERT INTO %s (id, name, priority, score, active) VALUES ('r2', 'new', 3, 4.5, true)", physical))
if err != nil {
t.Fatal("insert with new columns failed:", err)
}