summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/migrations/0004_provides.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-02-18 21:21:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-19 15:38:48 +0000
commit8469e5802590551dbf88a26539b9cfe5710c074d (patch)
treeefd0ce0188cd8593b4f1a25e40e69c73bbc64e4f /bitbake/lib/toaster/orm/migrations/0004_provides.py
parent78b610944049c611f30a947895a5db7edc171393 (diff)
downloadpoky-8469e5802590551dbf88a26539b9cfe5710c074d.tar.gz
bitbake: toaster: orm migrations Sort out migrations mess
We messed up the migrations by squashing some of the image customisation model definitions into the initial migration which has meant some irreversible operations on mysql took place. This deletes, re-orders and fixes the migrations. If your schema is up to date you may want to use ./manage migrate with --fake or --fake-initial to avoid re-applying migrations. [YOCTO #9116] (Bitbake rev: 19bd63fc3a28dcbd0f531a5b06a037da34568bac) 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/migrations/0004_provides.py')
-rw-r--r--bitbake/lib/toaster/orm/migrations/0004_provides.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0004_provides.py b/bitbake/lib/toaster/orm/migrations/0004_provides.py
new file mode 100644
index 0000000000..dfde2d1361
--- /dev/null
+++ b/bitbake/lib/toaster/orm/migrations/0004_provides.py
@@ -0,0 +1,27 @@
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', '0003_customimagepackage'),
11 ]
12
13 operations = [
14 migrations.CreateModel(
15 name='Provides',
16 fields=[
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('name', models.CharField(max_length=100)),
19 ('recipe', models.ForeignKey(to='orm.Recipe')),
20 ],
21 ),
22 migrations.AddField(
23 model_name='recipe_dependency',
24 name='via',
25 field=models.ForeignKey(null=True, default=None, to='orm.Provides'),
26 ),
27 ]