mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 08:09:59 +01:00
ci: run database tests against Postgres, MySQL and SQLite (#6996)
This commit is contained in:
@@ -85,6 +85,11 @@ func dumpTable(db *gorm.DB, table interface{}, w io.Writer) error {
|
||||
return errors.Wrap(err, "scan rows")
|
||||
}
|
||||
|
||||
switch e := elem.(type) {
|
||||
case *LFSObject:
|
||||
e.CreatedAt = e.CreatedAt.UTC()
|
||||
}
|
||||
|
||||
err = jsoniter.NewEncoder(w).Encode(elem)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "encode JSON")
|
||||
|
||||
Reference in New Issue
Block a user