bitbake: toaster: orm: Add db migration for new CustomImageRecipe inheritance change
(Bitbake rev: 2831d74201abba68c301d85ee583d706a51d5a5f) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1f102890d6
commit
4117af29c6
|
@ -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',
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue