layerindex-web/layerindex/migrations/0010_add_dependencies.py
Amanda Brindle 51e83c8d31 update_layer.py: Save and show recipe dependencies
Added a model for the PACKAGECONFIG variable, which has a one to
many relationship with the Recipe model.

Added models for static build dependencies and dynamic build
dependencies, both of which have a many to many relationship with
the Recipe model.

These objects are created in update_layer.py and are displayed on the
Recipe detail page.

Added a depends search option for recipes, allowing users to search for
recipes that depend on any particular recipe. Use "depends:recipename"
in the recipe search to activate this.

Fixes [YOCTO #12129]
Fixes [YOCTO #11415]

Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2017-12-18 09:01:29 +13:00

51 lines
1.8 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('layerindex', '0009_layerbranch_collection'),
]
operations = [
migrations.CreateModel(
name='DynamicBuildDep',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('name', models.CharField(max_length=255)),
],
),
migrations.CreateModel(
name='PackageConfig',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('feature', models.CharField(max_length=255)),
('with_option', models.CharField(max_length=255, blank=True)),
('without_option', models.CharField(max_length=255, blank=True)),
('build_deps', models.CharField(max_length=255, blank=True)),
('recipe', models.ForeignKey(to='layerindex.Recipe')),
],
),
migrations.CreateModel(
name='StaticBuildDep',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('name', models.CharField(max_length=255)),
('recipes', models.ManyToManyField(to='layerindex.Recipe')),
],
),
migrations.AddField(
model_name='dynamicbuilddep',
name='package_configs',
field=models.ManyToManyField(to='layerindex.PackageConfig'),
),
migrations.AddField(
model_name='dynamicbuilddep',
name='recipes',
field=models.ManyToManyField(to='layerindex.Recipe'),
),
]