From 6bd056c5691cea6204be83df0dc66ef9830603f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SY=20L=20/=20=20interestingLSY=20=5F/=20=E5=88=98=E8=83=9C?= =?UTF-8?q?=E4=B8=8E?= <2659723130@qq.com> Date: Sun, 24 Feb 2019 15:25:17 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4481b9a..6313d6f 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,5 @@ ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIM 从该 commit [d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3](https://github.com/syzoj/syzoj/commit/d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3)(2018 年 12 月 7 日)前更新的用户**必须**在其数据库上执行以下 SQL 语句。 ```sql -ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL AFTER `public_email`; +ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL DEFAULT(0) AFTER `public_email`; ``` From c2c3be73e70d452f5bb4d1e61106b4653acfb553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SY=20L=20/=20=20interestingLSY=20=5F/=20=E5=88=98=E8=83=9C?= =?UTF-8?q?=E4=B8=8E?= <2659723130@qq.com> Date: Sun, 24 Feb 2019 15:26:02 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6313d6f..ce53172 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,5 @@ ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIM 从该 commit [d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3](https://github.com/syzoj/syzoj/commit/d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3)(2018 年 12 月 7 日)前更新的用户**必须**在其数据库上执行以下 SQL 语句。 ```sql -ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL DEFAULT(0) AFTER `public_email`; +ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL DEFAULT 0 AFTER `public_email`; ``` From 3be224b2087314cb16c5b1e1b4793930d7ce6663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SY=20L=20/=20=20interestingLSY=20=5F/=20=E5=88=98=E8=83=9C?= =?UTF-8?q?=E4=B8=8E?= <2659723130@qq.com> Date: Sun, 24 Feb 2019 15:26:57 +0800 Subject: [PATCH 3/3] Update README.en.md --- README.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.en.md b/README.en.md index 05a8931..f180d33 100644 --- a/README.en.md +++ b/README.en.md @@ -42,5 +42,5 @@ ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIM Who upgraded from a commit BEFORE [d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3](https://github.com/syzoj/syzoj/commit/d8be150fc6b8c43af61c5e4aca4fc0fe0445aef3) (Dec 7, 2018) **MUST** perform the following SQL on the database. ```sql -ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL AFTER `public_email`; +ALTER TABLE `user` ADD `prefer_formatted_code` TINYINT(1) NOT NULL DEFAULT 0 AFTER `public_email`; ```