From 6be976e37662b14ce82f0a51e50963607b329104 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Tue, 10 Dec 2024 10:34:45 +0000 Subject: [PATCH] add error field for migrations --- .../migrations/0005_imagememo_error_message.py | 18 ++++++++++++++++++ penparse/webui/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 penparse/webui/migrations/0005_imagememo_error_message.py diff --git a/penparse/webui/migrations/0005_imagememo_error_message.py b/penparse/webui/migrations/0005_imagememo_error_message.py new file mode 100644 index 0000000..706227a --- /dev/null +++ b/penparse/webui/migrations/0005_imagememo_error_message.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.16 on 2024-12-10 10:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('webui', '0004_imagememo_status'), + ] + + operations = [ + migrations.AddField( + model_name='imagememo', + name='error_message', + field=models.TextField(null=True), + ), + ] diff --git a/penparse/webui/models.py b/penparse/webui/models.py index 750e42c..7b426ae 100644 --- a/penparse/webui/models.py +++ b/penparse/webui/models.py @@ -61,6 +61,7 @@ class ImageMemo(models.Model): updated_at = models.DateTimeField(auto_now=True) status = models.CharField(max_length=10, choices=MemoStatus.choices, default=MemoStatus.Pending) + error_message = models.TextField(null=True) class Meta: