From c7fbbd8de72dd9d72f8d9a2ab3574240a830d64c Mon Sep 17 00:00:00 2001 From: Thea Hvalen Thodesen Date: Thu, 22 Feb 2024 12:15:52 +0100 Subject: [PATCH] KURSP-1101: increase size of asset_name --- .../0006_alter_history_asset_name.py | 18 ++++++++++++++++++ statistics_api/history/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 statistics_api/history/migrations/0006_alter_history_asset_name.py diff --git a/statistics_api/history/migrations/0006_alter_history_asset_name.py b/statistics_api/history/migrations/0006_alter_history_asset_name.py new file mode 100644 index 0000000..ec93ddf --- /dev/null +++ b/statistics_api/history/migrations/0006_alter_history_asset_name.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.18 on 2024-02-22 11:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('history', '0005_alter_history_visited_url'), + ] + + operations = [ + migrations.AlterField( + model_name='history', + name='asset_name', + field=models.CharField(blank=True, max_length=512, null=True), + ), + ] diff --git a/statistics_api/history/models.py b/statistics_api/history/models.py index ceba49a..8708a2d 100644 --- a/statistics_api/history/models.py +++ b/statistics_api/history/models.py @@ -13,5 +13,5 @@ class History(models.Model): interaction_seconds = models.IntegerField(blank=True, null=True) asset_icon = models.CharField(max_length=255, null=True, blank=True) asset_readable_category = models.CharField(max_length=255, null=True, blank=True) - asset_name = models.CharField(max_length=255, null=True, blank=True) + asset_name = models.CharField(max_length=512, null=True, blank=True) context_name = models.CharField(max_length=255, null=True, blank=True)