feat(migration): Add hidden field to Activity model
Introduces a boolean field 'hidden' to the Activity model to allow activities to be marked as hidden. This can be utilized for filtering visible activities without deleting them from the database.
This commit is contained in:
parent
cfc8f6eefc
commit
4de1c966d6
1 changed files with 18 additions and 0 deletions
18
mood/migrations/0002_activity_hidden.py
Normal file
18
mood/migrations/0002_activity_hidden.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 5.0.6 on 2024-11-18 05:35
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("mood", "0001_initial"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name="activity",
|
||||||
|
name="hidden",
|
||||||
|
field=models.BooleanField(default=False),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in a new issue