Document the SQLite skip in v332

Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
This commit is contained in:
silverwindandClaude authored and beardev-in committed 2026-05-03 14:32:39 +05:30
1 parent 6a104f40d6
commit ed0ed680cf
1 file changed
+4
+4
View File
@@ -18,6 +18,10 @@ import (
// default is reapplied for MySQL afterwards. Postgres and MSSQL keep the existing // default is reapplied for MySQL afterwards. Postgres and MSSQL keep the existing
// DEFAULT constraint independently of the type change. // DEFAULT constraint independently of the type change.
func WidenProjectBoardSorting(x *xorm.Engine) error { func WidenProjectBoardSorting(x *xorm.Engine) error {
// SQLite uses type affinity rather than strict types: a column declared TINYINT
// already stores any 64-bit int, so the widening is a no-op. Updating the
// declared type would require recreating the table (no ALTER COLUMN in SQLite)
// for no behavioral gain.
if setting.Database.Type.IsSQLite3() { if setting.Database.Type.IsSQLite3() {
return nil return nil
} }