-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 实现了空盲盒元气值补偿功能 * 添加对元气值补偿为0情况的特殊处理 * 避免无意义删行 * 补充提交迁移文件 * 补充提交迁移文件 * 重新生成了迁移文件
- Loading branch information
1 parent
dcf90dd
commit 4802121
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
app/migrations/0006_pool_empty_yqpoint_compensation_lowerbound_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 5.0.1 on 2024-01-30 10:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("app", "0005_alter_participation_activity_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="pool", | ||
name="empty_YQPoint_compensation_lowerbound", | ||
field=models.IntegerField(default=0, verbose_name="空盒元气值补偿下限"), | ||
), | ||
migrations.AddField( | ||
model_name="pool", | ||
name="empty_YQPoint_compensation_upperbound", | ||
field=models.IntegerField(default=0, verbose_name="空盒元气值补偿上限"), | ||
), | ||
migrations.AddField( | ||
model_name="poolitem", | ||
name="is_empty_prize", | ||
field=models.BooleanField(default=False, verbose_name="是否空盒"), | ||
), | ||
] |
30 changes: 30 additions & 0 deletions
30
generic/migrations/0003_alter_yqpointrecord_source_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 5.0.1 on 2024-01-30 10:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("generic", "0002_permissionblacklist"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="yqpointrecord", | ||
name="source_type", | ||
field=models.SmallIntegerField( | ||
choices=[ | ||
(0, "系统操作"), | ||
(1, "每日签到"), | ||
(2, "参与活动"), | ||
(3, "问题反馈"), | ||
(4, "达成成就"), | ||
(5, "填写问卷"), | ||
(6, "奖池花费"), | ||
(7, "奖池补偿"), | ||
], | ||
default=0, | ||
verbose_name="来源类型", | ||
), | ||
), | ||
] |