mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-16 19:07:41 +02:00
Document the SQLite skip in v332
Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
This commit is contained in:
parent
6a104f40d6
commit
ed0ed680cf
@ -18,6 +18,10 @@ import (
|
||||
// default is reapplied for MySQL afterwards. Postgres and MSSQL keep the existing
|
||||
// DEFAULT constraint independently of the type change.
|
||||
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() {
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user