From e1bfe1ceb6c3518e1fd46f524cbca5c0550bf773 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 8 Dec 2015 21:01:10 +0000 Subject: bitbake: toaster: orm: Add db migration for new CustomImagePackage table (Bitbake rev: c7da71fe8509439656f482c16ed081cf442f4030) Signed-off-by: Michael Wood Signed-off-by: brian avery Signed-off-by: Richard Purdie --- .../orm/migrations/0003_customimagepackage.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py diff --git a/bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py b/bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py new file mode 100644 index 0000000000..d2ea8205b3 --- /dev/null +++ b/bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('orm', '0002_auto_20151210_1209'), + ] + + operations = [ + migrations.CreateModel( + name='CustomImagePackage', + fields=[ + ('package_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='orm.Package')), + ('recipe_appends', models.ManyToManyField(related_name='appends_set', to='orm.CustomImageRecipe')), + ('recipe_excludes', models.ManyToManyField(related_name='excludes_set', to='orm.CustomImageRecipe')), + ('recipe_includes', models.ManyToManyField(related_name='includes_set', to='orm.CustomImageRecipe')), + ], + bases=('orm.package',), + ), + ] -- cgit v1.2.3-54-g00ecf