Skip to content

Commit

Permalink
补充提交了迁移文件 (#811)
Browse files Browse the repository at this point in the history
* 实现了空盲盒元气值补偿功能

* 添加对元气值补偿为0情况的特殊处理

* 避免无意义删行

* 补充提交迁移文件

* 补充提交迁移文件

* 重新生成了迁移文件
  • Loading branch information
Morgen-Kornblume authored and pkuGenuine committed Aug 10, 2024
1 parent dcf90dd commit 4802121
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
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 generic/migrations/0003_alter_yqpointrecord_source_type.py
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="来源类型",
),
),
]

0 comments on commit 4802121

Please sign in to comment.