add Paul Eggleton

On 7/13/21 10:44 AM, Changqing Li wrote:
From: Changqing Li <changqing...@windriver.com>

Now, YPCompatibleVersions's name is only designed for using version like
2.0 3.0, the max_length is 25. but we mostly use Codename for layer
compatibility, eg: LAYERSERIES_COMPAT_dpdk = "dunfell gatesgarth
hardknott", in this case, it's not enough to save the compatible
version. so extend it to 100.

Signed-off-by: Changqing Li <changqing...@windriver.com>
---
  .../migrations/0045_yp_compatible_extend.py   | 24 +++++++++++++++++++
  layerindex/models.py                          |  2 +-
  2 files changed, 25 insertions(+), 1 deletion(-)
  create mode 100644 layerindex/migrations/0045_yp_compatible_extend.py

diff --git a/layerindex/migrations/0045_yp_compatible_extend.py 
b/layerindex/migrations/0045_yp_compatible_extend.py
new file mode 100644
index 0000000..3544b4b
--- /dev/null
+++ b/layerindex/migrations/0045_yp_compatible_extend.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.2 on 2021-07-13 02:43
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('layerindex', '0044_extendedprovides'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='classicrecipe',
+            name='cover_layerbranch',
+            field=models.ForeignKey(blank=True, 
limit_choices_to={'branch__name': 'master'}, null=True, 
on_delete=django.db.models.deletion.SET_NULL, to='layerindex.LayerBranch', 
verbose_name='Covering layer'),
+        ),
+        migrations.AlterField(
+            model_name='ypcompatibleversion',
+            name='name',
+            field=models.CharField(help_text='Name of this Yocto Project compatible 
version (e.g. "2.0")', max_length=100, unique=True, verbose_name='Yocto Project 
Version'),
+        ),
+    ]
diff --git a/layerindex/models.py b/layerindex/models.py
index 329cc33..2317740 100644
--- a/layerindex/models.py
+++ b/layerindex/models.py
@@ -217,7 +217,7 @@ class LayerRecipeExtraURL(models.Model):
class YPCompatibleVersion(models.Model):
-    name = models.CharField('Yocto Project Version', max_length=25, unique=True, 
help_text='Name of this Yocto Project compatible version (e.g. "2.0")')
+    name = models.CharField('Yocto Project Version', max_length=100, unique=True, 
help_text='Name of this Yocto Project compatible version (e.g. "2.0")')
      description = models.TextField(blank=True)
      image_url = models.CharField('Image URL', max_length=300, blank=True)
      link_url = models.CharField('Link URL', max_length=100, blank=True)



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54104): https://lists.yoctoproject.org/g/yocto/message/54104
Mute This Topic: https://lists.yoctoproject.org/mt/84170558/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to