Browse Source

Update README

master
Menci 6 years ago
parent
commit
44e580af01
  1. 10
      README.en.md
  2. 6
      README.md

10
README.en.md

@ -8,7 +8,7 @@ This project is the **official** successor and rewritten version of the original
Currently maintained by [LibreOJ](https://loj.ac). Currently maintained by [LibreOJ](https://loj.ac).
# Upgrading # Upgrading
Because of updates to the database structure, users who upgrade from a commit BEFORE [d5bcbe8fb79e80f9d603b764ac787295cceffa34](https://github.com/syzoj/syzoj/commit/d5bcbe8fb79e80f9d603b764ac787295cceffa34) (Feb 21, 2018) **MUST** perform the following SQL on the database: Because of updates to the database structure, users who upgrade from a commit BEFORE [d5bcbe8fb79e80f9d603b764ac787295cceffa34](https://github.com/syzoj/syzoj/commit/d5bcbe8fb79e80f9d603b764ac787295cceffa34) (Feb 21, 2018) **MUST** perform the following SQL on the database.
```sql ```sql
ALTER TABLE `judge_state` ADD `is_public` TINYINT(1) NOT NULL AFTER `compilation`; ALTER TABLE `judge_state` ADD `is_public` TINYINT(1) NOT NULL AFTER `compilation`;
@ -16,7 +16,7 @@ UPDATE `judge_state` JOIN `problem` ON `problem`.`id` = `judge_state`.`problem_i
ALTER TABLE `syzoj`.`judge_state` ADD INDEX `judge_state_is_public` (`id`, `is_public`, `type_info`, `type`); ALTER TABLE `syzoj`.`judge_state` ADD INDEX `judge_state_is_public` (`id`, `is_public`, `type_info`, `type`);
``` ```
Who upgrade from a commit BEFORE [26d66ceef24fbb35481317453bcb89ead6c69076](https://github.com/syzoj/syzoj/commit/26d66ceef24fbb35481317453bcb89ead6c69076) (Nov 5, 2018) and not using SQLite **MUST** perform the following SQL on the database: Who upgrade from a commit BEFORE [26d66ceef24fbb35481317453bcb89ead6c69076](https://github.com/syzoj/syzoj/commit/26d66ceef24fbb35481317453bcb89ead6c69076) (Nov 5, 2018) and not using SQLite **MUST** perform the following SQL on the database.
```sql ```sql
ALTER TABLE contest_player CHANGE score_details score_details JSON NOT NULL; ALTER TABLE contest_player CHANGE score_details score_details JSON NOT NULL;
@ -27,6 +27,12 @@ ALTER TABLE judge_state CHANGE compilation compilation JSON NOT NULL;
ALTER TABLE judge_state CHANGE result result JSON NOT NULL; ALTER TABLE judge_state CHANGE result result JSON NOT NULL;
``` ```
Who upgraded from a commit BEFORE [84b9e2d7b51e4ed3ab426621b66cf5ae9e1e1c23](https://github.com/syzoj/syzoj/commit/84b9e2d7b51e4ed3ab426621b66cf5ae9e1e1c23) (Nov 6, 2018) **MUST** perform the following SQL on the database. **Notice**: This SQL haven't been tested on a non-MySQL database.
```sql
ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `type`;
```
# Deploying # Deploying
The previous tutorial for deploying is outdated and have been removed. Newest version of tutorial for deploying will be available soon. The previous tutorial for deploying is outdated and have been removed. Newest version of tutorial for deploying will be available soon.

6
README.md

@ -27,6 +27,12 @@ ALTER TABLE judge_state CHANGE compilation compilation JSON NOT NULL;
ALTER TABLE judge_state CHANGE result result JSON NOT NULL; ALTER TABLE judge_state CHANGE result result JSON NOT NULL;
``` ```
从该 commit [84b9e2d7b51e4ed3ab426621b66cf5ae9e1e1c23](https://github.com/syzoj/syzoj/commit/84b9e2d7b51e4ed3ab426621b66cf5ae9e1e1c23)(2018 年 11 月 6 日)前更新的用户**必须**在其数据库上执行以下 SQL 语句。**注意**:此语句尚未在除 MySQL 外的数据库系统中测试。
```sql
ALTER TABLE `problem` ADD `publicize_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `type`;
```
# 部署 # 部署
之前的部署指南已经过期并已被删除。最新的部署指南将在不久后可用。 之前的部署指南已经过期并已被删除。最新的部署指南将在不久后可用。

Loading…
Cancel
Save