We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d339e41 commit a9c7a23Copy full SHA for a9c7a23
models/migrations/v167.go
@@ -11,6 +11,12 @@ import (
11
)
12
13
func recreateUserTableToFixDefaultValues(x *xorm.Engine) error {
14
+ if _, err := x.Where(builder.IsNull{"keep_activity_private"}).
15
+ Cols("keep_activity_private").
16
+ Update(User{KeepActivityPrivate: false}); err != nil {
17
+ return err
18
+ }
19
+
20
switch x.Dialect().URI().DBType {
21
case schemas.MYSQL:
22
_, err := x.Exec("ALTER TABLE `user` MODIFY COLUMN keep_activity_private tinyint(1) DEFAULT 0 NOT NULL;")
0 commit comments