mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一些错误
This commit is contained in:
1 parent
747cb1b9b5
commit
b19f948fdd
30 files changed
+306
-132
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# 迁移须知
|
||||
|
||||
迁移前,您需要指定数据来源。
|
||||
**请不要**将 Hydro 正在使用的数据库设置为数据来源的数据库。
|
||||
迁移过程中,Hydro 的以下内容会被**清空**:
|
||||
|
||||
题目列表,提交记录,用户列表,比赛列表,比赛成绩表,训练列表,训练进度,站内消息,题解,讨论
|
||||
|
||||
以下内容将被迁移:
|
||||
|
||||
题目与测试数据、题解,讨论与回复,比赛与成绩单,训练与进度数据,提交记录,用户列表
|
||||
|
||||
迁移过程中请保持
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "migrate-vijos",
|
||||
"id": "migrate-vijos",
|
||||
"version": "0.0.1",
|
||||
"description": "Migrate From Vijos"
|
||||
}
|
||||
@@ -20,6 +20,7 @@ const tasks = {
|
||||
salt: doc.salt,
|
||||
hash: doc.hash.split('|')[1],
|
||||
hashType: doc.hash.split('|')[0] === 'vj4' ? 'hydro' : doc.hash.split('|')[0],
|
||||
role: doc.priv === -1 ? 'root' : 'default',
|
||||
gravatar: doc.gravatar,
|
||||
email: doc.mail,
|
||||
emailLower: doc.mail_lower,
|
||||
|
||||
@@ -54,8 +54,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
{% include 'components/md_hint.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user