Skip to content

Commit

Permalink
Add migration to alter 'agent' field in 'ip' model to allow blank and…
Browse files Browse the repository at this point in the history
… null values
  • Loading branch information
DonnieBLT committed Jan 1, 2025
1 parent 7cd9347 commit 6570c34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions website/migrations/0178_alter_ip_agent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.1.4 on 2025-01-01 22:50

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("website", "0177_project_project_visit_count"),
]

operations = [
migrations.AlterField(
model_name="ip",
name="agent",
field=models.TextField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ class IP(models.Model):
user = models.CharField(max_length=150, null=True, blank=True)
issuenumber = models.IntegerField(null=True, blank=True)
created = models.DateTimeField(auto_now_add=True)
agent = models.CharField(max_length=255, null=True, blank=True)
agent = models.TextField(null=True, blank=True)
count = models.BigIntegerField(default=1)
path = models.CharField(max_length=255, null=True, blank=True)
method = models.CharField(max_length=10, null=True, blank=True)
Expand Down

0 comments on commit 6570c34

Please sign in to comment.