summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/fixtures
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-07-21 14:43:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:10:36 +0100
commit97278fb51c3d4fe46c2a3110015e291fdc5d502d (patch)
tree2535f7584e2ccc4390ecfbaf16031e8b8886e4c5 /bitbake/lib/toaster/toastergui/fixtures
parent8b3146007f98ba6618662cc47ed1c1491ef8945a (diff)
downloadpoky-97278fb51c3d4fe46c2a3110015e291fdc5d502d.tar.gz
bitbake: toaster: orm Remove the layerindex specific up_branch fields
We don't need to keep track of layerindex data in our database. And using branch==release is very confusing in the schema. Instead use the existing Release definition to keep track of which release a layer_version is for. Remove the Branch model and all references to it. Create a migration path to convert from up_branches to their corresponding releases. (Bitbake rev: f8f4cffe6fd371f3a7e63690c68f3fcb5dc1f297) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/fixtures')
-rw-r--r--bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml21
1 files changed, 14 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml b/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml
index 80c1e19dda..4517ed1765 100644
--- a/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml
+++ b/bitbake/lib/toaster/toastergui/fixtures/toastergui-unittest-data.xml
@@ -1,5 +1,16 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<django-objects version="1.0"> 2<django-objects version="1.0">
3 <object pk="1" model="orm.bitbakeversion">
4 <field type="CharField" name="name">v2.3</field>
5 <field type="GitURLField" name="giturl">git://git.openembedded.org/bitbake</field>
6 <field type="CharField" name="dirpath">b</field>
7 <field type="CharField" name="branch">a</field>
8 </object>
9 <object pk="1" model="orm.release">
10 <field type="CharField" name="name">master</field>
11 <field type="CharField" name="description">master project</field>
12 <field to="orm.bitbake_version" name="bitbake_version">1</field>
13 </object>
3 <object pk="1" model="orm.project"> 14 <object pk="1" model="orm.project">
4 <field type="CharField" name="name">a test project</field> 15 <field type="CharField" name="name">a test project</field>
5 <field type="CharField" name="short_description"></field> 16 <field type="CharField" name="short_description"></field>
@@ -332,10 +343,6 @@
332 <field type="CharField" name="branch_name">master</field> 343 <field type="CharField" name="branch_name">master</field>
333 <field type="TextField" name="helptext"><None></None></field> 344 <field type="TextField" name="helptext"><None></None></field>
334 </object> 345 </object>
335 <object pk="1" model="orm.branch">
336 <field type="CharField" name="name">master</field>
337 <field type="CharField" name="short_description"></field>
338 </object>
339 <object pk="1" model="orm.layer"> 346 <object pk="1" model="orm.layer">
340 <field type="DateTimeField" name="up_date"><None></None></field> 347 <field type="DateTimeField" name="up_date"><None></None></field>
341 <field type="CharField" name="name">a layer</field> 348 <field type="CharField" name="name">a layer</field>
@@ -351,7 +358,7 @@
351 <field to="orm.build" name="build" rel="ManyToOneRel">1</field> 358 <field to="orm.build" name="build" rel="ManyToOneRel">1</field>
352 <field to="orm.layer" name="layer" rel="ManyToOneRel">1</field> 359 <field to="orm.layer" name="layer" rel="ManyToOneRel">1</field>
353 <field type="DateTimeField" name="up_date"><None></None></field> 360 <field type="DateTimeField" name="up_date"><None></None></field>
354 <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> 361 <field to="orm.release" name="release" rel="ManyToOneRel">1</field>
355 <field type="CharField" name="branch">master</field> 362 <field type="CharField" name="branch">master</field>
356 <field type="CharField" name="commit">abcdef123</field> 363 <field type="CharField" name="commit">abcdef123</field>
357 <field type="CharField" name="dirpath">/tmp/</field> 364 <field type="CharField" name="dirpath">/tmp/</field>
@@ -363,7 +370,7 @@
363 <field to="orm.build" name="build" rel="ManyToOneRel"><None></None></field> 370 <field to="orm.build" name="build" rel="ManyToOneRel"><None></None></field>
364 <field to="orm.layer" name="layer" rel="ManyToOneRel">2</field> 371 <field to="orm.layer" name="layer" rel="ManyToOneRel">2</field>
365 <field type="DateTimeField" name="up_date"><None></None></field> 372 <field type="DateTimeField" name="up_date"><None></None></field>
366 <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> 373 <field to="orm.release" name="release" rel="ManyToOneRel">1</field>
367 <field type="CharField" name="branch">testing-branch</field> 374 <field type="CharField" name="branch">testing-branch</field>
368 <field type="CharField" name="commit">9876fedcba</field> 375 <field type="CharField" name="commit">9876fedcba</field>
369 <field type="CharField" name="dirpath"><None></None></field> 376 <field type="CharField" name="dirpath"><None></None></field>
@@ -375,7 +382,7 @@
375 <field to="orm.build" name="build" rel="ManyToOneRel">1</field> 382 <field to="orm.build" name="build" rel="ManyToOneRel">1</field>
376 <field to="orm.layer" name="layer" rel="ManyToOneRel">2</field> 383 <field to="orm.layer" name="layer" rel="ManyToOneRel">2</field>
377 <field type="DateTimeField" name="up_date"><None></None></field> 384 <field type="DateTimeField" name="up_date"><None></None></field>
378 <field to="orm.branch" name="up_branch" rel="ManyToOneRel">1</field> 385 <field to="orm.release" name="release" rel="ManyToOneRel">1</field>
379 <field type="CharField" name="branch">testing-branch</field> 386 <field type="CharField" name="branch">testing-branch</field>
380 <field type="CharField" name="commit">9876fedcba</field> 387 <field type="CharField" name="commit">9876fedcba</field>
381 <field type="CharField" name="dirpath"><None></None></field> 388 <field type="CharField" name="dirpath"><None></None></field>