forgejo-aneksajo/models/db
forgejo-backport-action ff4f2bcf07 [v11.0/forgejo] chore(cleanup): suppress non actionable XORM warnings (#8022)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8021

The following will trigger a XORM warning:

```
	type Repository struct {
		ID     int64    `xorm:"pk autoincr"`
		Topics []string `xorm:"TEXT JSON NOT NULL"`
	}
```

that looks like:

```
  [W] Table repository Column topics db default is '', struct default is
```

it cannot be resolved because:

- SQLite requires a default when there is a NOT NULL
- MySQL forbids a default for TEXT

Co-authored-by: Earl Warren <contact@earl-warren.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8022
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-05-30 13:43:41 +02:00
..
install [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
paginator [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
collation.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
common.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
consistency.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
context.go Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-09 15:05:24 +01:00
context_committer_test.go chore: use errors.New to replace fmt.Errorf with no parameters (#32800) 2024-12-15 09:15:57 +01:00
context_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
convert.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
engine.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
engine_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
error.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
index.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
index_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
iterate.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
iterate_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
list.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
list_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
log.go [v11.0/forgejo] chore(cleanup): suppress non actionable XORM warnings (#8022) 2025-05-30 13:43:41 +02:00
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
name.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
search.go [Refactor] Unify repo search order by logic (#30876) 2024-06-16 13:42:58 +02:00
sequence.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
sql_postgres_with_schema.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00