bitbake: toaster: fix migration code for MySQL
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 28 Apr 2014 13:10:16 +0000 (21:10 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 May 2014 15:18:12 +0000 (16:18 +0100)
commit22933f5d8e878bbf9b6f17e07303f79cffe7024e
treeeda02442e369137882d4ed98a69a1ed23667eb55
parent3ee9758496d9ca2cc5ef1d1373cffee587aa75d9
bitbake: toaster: fix migration code for MySQL

This is a patch that fixes the 0004, 0005 migrations of the toaster
model to get them to properly work with MySQL.

These migrations had a conflict around Build.timespent field.
The sqlite3 constraits were not enough to detect the conflict, and
the migrations worked as expected.

MySQL objected to adding the field twice, so I did regenerate
the migrations with the correct model listing. The net effect
is the same, so the migrations work the same, but now we
can use these two migration on the MySQL and other more advanced
SQL engines.

(Bitbake rev: 29afc29154b948d270ce52978a1eed4cd8887f92)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/orm/migrations/0004_auto__add_field_package_installed_name.py
bitbake/lib/toaster/orm/migrations/0005_auto__add_target_image_file__add_target_file__add_field_variablehistor.py