You've already forked opc-backend
28 lines
804 B
Python
28 lines
804 B
Python
|
|
# Generated by Django 4.2.30 on 2026-04-27 17:30
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('system', '0004_skill'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.AlterModelOptions(
|
||
|
|
name='announcement',
|
||
|
|
options={'ordering': ['-is_recommended', '-recommend_priority', '-created_at']},
|
||
|
|
),
|
||
|
|
migrations.AddField(
|
||
|
|
model_name='announcement',
|
||
|
|
name='is_recommended',
|
||
|
|
field=models.BooleanField(default=False, help_text='推荐/置顶'),
|
||
|
|
),
|
||
|
|
migrations.AddField(
|
||
|
|
model_name='announcement',
|
||
|
|
name='recommend_priority',
|
||
|
|
field=models.IntegerField(default=0, help_text='推荐优先级, 越大越靠前'),
|
||
|
|
),
|
||
|
|
]
|