Increase topic length
This commit is contained in:
parent
4ead6ff7c1
commit
d581d787de
|
@ -0,0 +1,28 @@
|
||||||
|
# Generated by Django 4.1.6 on 2023-02-13 10:18
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0026_notificationrule_policy_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='notificationrule',
|
||||||
|
name='policy',
|
||||||
|
field=models.CharField(choices=[('default', 'Default: Trigger only when there were no results last time'), ('change', 'Change: Default + trigger when there are no results (if there were before)'), ('always', 'Always: Trigger on every run (not recommended for low intervals)')], default='default', max_length=255),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='notificationrule',
|
||||||
|
name='topic',
|
||||||
|
field=models.CharField(blank=True, max_length=2048, null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='notificationsettings',
|
||||||
|
name='topic',
|
||||||
|
field=models.CharField(blank=True, max_length=2048, null=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -192,7 +192,7 @@ class NotificationRule(models.Model):
|
||||||
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
priority = models.IntegerField(choices=PRIORITY_CHOICES, default=1)
|
priority = models.IntegerField(choices=PRIORITY_CHOICES, default=1)
|
||||||
topic = models.CharField(max_length=255, null=True, blank=True)
|
topic = models.CharField(max_length=2048, null=True, blank=True)
|
||||||
url = models.CharField(max_length=1024, null=True, blank=True)
|
url = models.CharField(max_length=1024, null=True, blank=True)
|
||||||
interval = models.IntegerField(choices=INTERVAL_CHOICES, default=0)
|
interval = models.IntegerField(choices=INTERVAL_CHOICES, default=0)
|
||||||
window = models.CharField(max_length=255, null=True, blank=True)
|
window = models.CharField(max_length=255, null=True, blank=True)
|
||||||
|
@ -242,7 +242,7 @@ class NotificationRule(models.Model):
|
||||||
|
|
||||||
class NotificationSettings(models.Model):
|
class NotificationSettings(models.Model):
|
||||||
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
||||||
topic = models.CharField(max_length=255, null=True, blank=True)
|
topic = models.CharField(max_length=2048, null=True, blank=True)
|
||||||
url = models.CharField(max_length=1024, null=True, blank=True)
|
url = models.CharField(max_length=1024, null=True, blank=True)
|
||||||
service = models.CharField(choices=SERVICE_CHOICES, max_length=255, default="ntfy")
|
service = models.CharField(choices=SERVICE_CHOICES, max_length=255, default="ntfy")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue