From 4117af29c6a1f6a30234af7a0ea9296fa278fd95 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 8 Dec 2015 20:58:55 +0000 Subject: bitbake: toaster: orm: Add db migration for new CustomImageRecipe inheritance change (Bitbake rev: 2831d74201abba68c301d85ee583d706a51d5a5f) Signed-off-by: Michael Wood Signed-off-by: brian avery Signed-off-by: Richard Purdie --- .../orm/migrations/0002_auto_20151210_1209.py | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py (limited to 'bitbake/lib/toaster/orm') diff --git a/bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py b/bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py new file mode 100644 index 0000000000..d15ceaa2be --- /dev/null +++ b/bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('orm', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='customimagerecipe', + name='recipe_ptr', + field=models.OneToOneField(parent_link=True, auto_created=True, default=None, serialize=False, to='orm.Recipe'), + preserve_default=False, + ), + migrations.AlterField( + model_name='customimagerecipe', + name='base_recipe', + field=models.ForeignKey(related_name='based_on_recipe', to='orm.Recipe'), + ), + migrations.AlterUniqueTogether( + name='customimagerecipe', + unique_together=set([]), + ), + migrations.RemoveField( + model_name='customimagerecipe', + name='id', + ), + migrations.RemoveField( + model_name='customimagerecipe', + name='name', + ), + migrations.RemoveField( + model_name='customimagerecipe', + name='packages', + ), + ] -- cgit v1.2.3-54-g00ecf