From 9e5c8042baaa742b31e13a8159a3d6dd8d819152 Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Mon, 27 Mar 2023 10:30:05 +0200
Subject: [PATCH] make workflow.commit_id field larger

---
 .../migrations/0020_auto_20230327_1029.py      | 18 ++++++++++++++++++
 atdb/taskdatabase/models.py                    |  2 +-
 .../templates/taskdatabase/index.html          |  2 +-
 3 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 atdb/taskdatabase/migrations/0020_auto_20230327_1029.py

diff --git a/atdb/taskdatabase/migrations/0020_auto_20230327_1029.py b/atdb/taskdatabase/migrations/0020_auto_20230327_1029.py
new file mode 100644
index 00000000..3bce17f8
--- /dev/null
+++ b/atdb/taskdatabase/migrations/0020_auto_20230327_1029.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.1.4 on 2023-03-27 08:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('taskdatabase', '0019_task_archive'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='workflow',
+            name='commit_id',
+            field=models.CharField(blank=True, max_length=100, null=True),
+        ),
+    ]
diff --git a/atdb/taskdatabase/models.py b/atdb/taskdatabase/models.py
index 59bb7dc1..082876b9 100644
--- a/atdb/taskdatabase/models.py
+++ b/atdb/taskdatabase/models.py
@@ -16,7 +16,7 @@ class Workflow(models.Model):
     description = models.CharField(max_length=500, blank=True, null=True)
     workflow_uri = models.CharField(unique=True, max_length=30, blank=True, null=True)
     repository = models.CharField(max_length=100, blank=True, null=True)
-    commit_id = models.CharField(max_length=15, blank=True, null=True)
+    commit_id = models.CharField(max_length=100, blank=True, null=True)
     path = models.CharField(max_length=100, blank=True, null=True)
     oi_size_fraction = models.FloatField(blank=True, null=True)
     meta_scheduling = models.JSONField(null=True, blank=True)
diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index e21c03e7..3a92ca2d 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -34,7 +34,7 @@
         {% include 'taskdatabase/pagination.html' %}
        </div>
     </div>
-    <p class="footer"> Version 18 March 2023
+    <p class="footer"> Version 27 March 2023
 
 </div>
 
-- 
GitLab