Skip to content

Commit

Permalink
feat: increase the src urlfield size
Browse files Browse the repository at this point in the history
  • Loading branch information
Gowtham1729 committed Dec 12, 2023
1 parent 01d17ea commit a19b4c5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by Django 4.2.7 on 2023-12-12 10:09

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("news", "0006_analysis_neutral_news"),
]

operations = [
migrations.AlterField(
model_name="news",
name="img_src_url",
field=models.URLField(max_length=2048),
),
migrations.AlterField(
model_name="news",
name="sentiment",
field=models.IntegerField(),
),
migrations.AlterField(
model_name="news",
name="src",
field=models.CharField(max_length=2048),
),
migrations.AlterField(
model_name="news",
name="src_url",
field=models.URLField(max_length=2048),
),
]
8 changes: 4 additions & 4 deletions applications/backend/django_server/news/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ class News(models.Model):
category = models.CharField(max_length=100)
symbol = models.CharField(max_length=100)

src = models.CharField(max_length=256)
src_url = models.URLField(max_length=500)
img_src_url = models.URLField(max_length=500)
src = models.CharField(max_length=2048)
src_url = models.URLField(max_length=2048)
img_src_url = models.URLField(max_length=2048)

headline = models.TextField()
summary = models.TextField()

publish_time = models.DateTimeField()

sentiment = models.CharField(max_length=100)
sentiment = models.IntegerField()

class Meta:
unique_together = ("symbol", "headline")
Expand Down

0 comments on commit a19b4c5

Please sign in to comment.