diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-12-08 21:01:10 +0000 |
---|---|---|
committer | Michael Wood <michael.g.wood@intel.com> | 2016-02-08 17:30:15 +0000 |
commit | c7da71fe8509439656f482c16ed081cf442f4030 (patch) | |
tree | 4b9fa7ec0ed196dca3ecf23d950e6e271cce04ec | |
parent | c1bd4f760cd35535e44f488250e0a56b99cad680 (diff) | |
download | openembedded-core-contrib-c7da71fe8509439656f482c16ed081cf442f4030.tar.gz |
toaster: orm: Add db migration for new CustomImagePackage table
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
-rw-r--r-- | lib/toaster/orm/migrations/0003_customimagepackage.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/toaster/orm/migrations/0003_customimagepackage.py b/lib/toaster/orm/migrations/0003_customimagepackage.py new file mode 100644 index 0000000000..d2ea8205b3 --- /dev/null +++ b/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',), + ), + ] |