bitbake: toaster: modify SQL data type constraints
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 28 Apr 2014 14:11:03 +0000 (22:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 May 2014 15:18:12 +0000 (16:18 +0100)
commit5a6e50d78ab4f1fa9bcbb9f2dd43697b11fe35c5
treea37b309b529f72354608ec2aac51aa9ba9f7b461
parent22933f5d8e878bbf9b6f17e07303f79cffe7024e
bitbake: toaster: modify SQL data type constraints

This patch modifies the data type constraints for the SQL
fields.

The original constraints have been based on guess worked, and
they weren't strictly enforced for sqlite. On MySQL, the
constraints are strictly enforced, and need to match the real
data that we have.

After measuring data on sample builds, the new constraints
have been validated to work with MySQL, and this patch updates
the database schema with the new field types / constraints.

(Bitbake rev: aaefbc0b4e7484d6f4854ce49602821a6e4adc4b)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/orm/migrations/0008_auto__chg_field_variablehistory_operation__chg_field_recipe_descriptio.py [new file with mode: 0644]
bitbake/lib/toaster/orm/models.py