diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2015-12-08 20:58:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:16 +0000 |
| commit | 4117af29c6a1f6a30234af7a0ea9296fa278fd95 (patch) | |
| tree | 4093d0a2b871276ec16b4a6ee7825482ea26ce2b /bitbake | |
| parent | 1f102890d6da3d0a330c6bce5c652f747cec222f (diff) | |
| download | poky-4117af29c6a1f6a30234af7a0ea9296fa278fd95.tar.gz | |
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>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/toaster/orm/migrations/0002_auto_20151210_1209.py | 41 |
1 files changed, 41 insertions, 0 deletions
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 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | from __future__ import unicode_literals | ||
| 3 | |||
| 4 | from django.db import migrations, models | ||
| 5 | |||
| 6 | |||
| 7 | class Migration(migrations.Migration): | ||
| 8 | |||
| 9 | dependencies = [ | ||
| 10 | ('orm', '0001_initial'), | ||
| 11 | ] | ||
| 12 | |||
| 13 | operations = [ | ||
| 14 | migrations.AddField( | ||
| 15 | model_name='customimagerecipe', | ||
| 16 | name='recipe_ptr', | ||
| 17 | field=models.OneToOneField(parent_link=True, auto_created=True, default=None, serialize=False, to='orm.Recipe'), | ||
| 18 | preserve_default=False, | ||
| 19 | ), | ||
| 20 | migrations.AlterField( | ||
| 21 | model_name='customimagerecipe', | ||
| 22 | name='base_recipe', | ||
| 23 | field=models.ForeignKey(related_name='based_on_recipe', to='orm.Recipe'), | ||
| 24 | ), | ||
| 25 | migrations.AlterUniqueTogether( | ||
| 26 | name='customimagerecipe', | ||
| 27 | unique_together=set([]), | ||
| 28 | ), | ||
| 29 | migrations.RemoveField( | ||
| 30 | model_name='customimagerecipe', | ||
| 31 | name='id', | ||
| 32 | ), | ||
| 33 | migrations.RemoveField( | ||
| 34 | model_name='customimagerecipe', | ||
| 35 | name='name', | ||
| 36 | ), | ||
| 37 | migrations.RemoveField( | ||
| 38 | model_name='customimagerecipe', | ||
| 39 | name='packages', | ||
| 40 | ), | ||
| 41 | ] | ||
