add NOT NULL, remove hidden=0

This commit is contained in:
B. Petersen
2026-08-06 22:54:35 +02:00
committed by biørn
parent a6f33d7474
commit 476fbf72e3
2 changed files with 2 additions and 2 deletions

View File

@@ -2603,7 +2603,7 @@ UPDATE msgs SET state=24 WHERE state=18; -- Change OutPreparing to OutFailed.
// the partial index `WHERE pinned=1` keeps the index small and useful,
// since the vast majority of rows are `pinned=0`.
sql.execute_migration(
"ALTER TABLE msgs ADD COLUMN pinned INTEGER DEFAULT 0;
"ALTER TABLE msgs ADD COLUMN pinned INTEGER NOT NULL DEFAULT 0;
CREATE INDEX msgs_index10 ON msgs (pinned) WHERE pinned=1;",
migration_version,
)