summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-12-08 21:01:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:17 +0000
commite1bfe1ceb6c3518e1fd46f524cbca5c0550bf773 (patch)
treeb788a5ee4f80b712d21d651f20e7aa4d2e7411c9 /bitbake/lib/toaster/orm
parentf760a78e3c36366020778c0cc101f9d8feb51b99 (diff)
downloadpoky-e1bfe1ceb6c3518e1fd46f524cbca5c0550bf773.tar.gz
bitbake: toaster: orm: Add db migration for new CustomImagePackage table
(Bitbake rev: c7da71fe8509439656f482c16ed081cf442f4030) 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/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/migrations/0003_customimagepackage.py24
1 files changed, 24 insertions, 0 deletions
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 @@
1# -*- coding: utf-8 -*-
2from __future__ import unicode_literals
3
4from django.db import migrations, models
5
6
7class Migration(migrations.Migration):
8
9 dependencies = [
10 ('orm', '0002_auto_20151210_1209'),
11 ]
12
13 operations = [
14 migrations.CreateModel(
15 name='CustomImagePackage',
16 fields=[
17 ('package_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='orm.Package')),
18 ('recipe_appends', models.ManyToManyField(related_name='appends_set', to='orm.CustomImageRecipe')),
19 ('recipe_excludes', models.ManyToManyField(related_name='excludes_set', to='orm.CustomImageRecipe')),
20 ('recipe_includes', models.ManyToManyField(related_name='includes_set', to='orm.CustomImageRecipe')),
21 ],
22 bases=('orm.package',),
23 ),
24 ]