Feat v0.5.5 upgrade testing #35
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user