add reachable date for sites
This commit is contained in:
parent
2015d7b67f
commit
1d5d51f42b
2 changed files with 25 additions and 1 deletions
23
mastodon/migrations/0003_mastodonapplication_reachable.py
Normal file
23
mastodon/migrations/0003_mastodonapplication_reachable.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 4.2.7 on 2023-11-10 20:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("mastodon", "0002_add_api_domain_server_version"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="mastodonapplication",
|
||||
name="disabled",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="mastodonapplication",
|
||||
name="last_reachable_date",
|
||||
field=models.DateTimeField(default=None, null=True),
|
||||
),
|
||||
]
|
|
@ -17,7 +17,8 @@ class MastodonApplication(models.Model):
|
|||
max_status_len = models.PositiveIntegerField(
|
||||
_("max toot len"), blank=False, default=500
|
||||
)
|
||||
|
||||
last_reachable_date = models.DateTimeField(null=True, default=None)
|
||||
disabled = models.BooleanField(default=False)
|
||||
is_proxy = models.BooleanField(default=False, blank=True)
|
||||
proxy_to = models.CharField(max_length=100, blank=True, default="")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue