gitea/cmd
Giteabot c4f569b9a5
Support converting varchar to nvarchar for mssql database (#24105) (#24168)
Backport #24105 by @lunny

In #12269, all string fields of struct will generate a NVARCHAR column
in database, but for those Gitea instances installed before that PR,
users have to convert columns themselves.

In this PR, we update the `./gitea admin convert` commands to support
both MySQL and MSSQL database converting. Previously, it only supported
converting `utf8 -> utf8mb4` for MySQL.
Now, it will check the database types.
If it's MSSQL, it will convert `VARCHAR -> NVARCHAR` as well.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-04-17 10:10:15 -04:00
..
admin.go Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) (#23403) 2023-03-10 08:29:28 -06:00
admin_auth_ldap.go
admin_auth_ldap_test.go
admin_user.go
admin_user_change_password.go
admin_user_create.go
admin_user_delete.go
admin_user_generate_access_token.go
admin_user_list.go
admin_user_must_change_password.go
cert.go
cmd.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
convert.go Support converting varchar to nvarchar for mssql database (#24105) (#24168) 2023-04-17 10:10:15 -04:00
docs.go
doctor.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
dump.go Check LFS/Packages settings in dump and doctor command (#23631) (#23730) 2023-03-27 16:28:22 +08:00
dump_repo.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
embedded.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
embedded_stub.go
generate.go
hook.go
hook_test.go
keys.go
mailer.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
manager.go
manager_logging.go
migrate.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate_storage.go Make minio package support legacy MD5 checksum (#23768) (#23770) 2023-03-29 00:02:13 +08:00
migrate_storage_test.go
restore_repo.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
serv.go Make `gitea serv` respect git binary home (#23138) (#23197) 2023-02-28 16:46:23 -06:00
web.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
web_acme.go
web_graceful.go
web_https.go