]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Use LONGTEXT for templates in MySQL
authorClint Byrum <clint@fewbar.com>
Mon, 19 Aug 2013 22:02:53 +0000 (15:02 -0700)
committerClint Byrum <clint@fewbar.com>
Tue, 20 Aug 2013 03:13:17 +0000 (20:13 -0700)
commit1e16ed2deab60995f5a49cb5396e9c43b8d24b91
tree25adecf3dd859cfd6e9849c285042b88bb761ecd
parentad22636367fba61302923f320b6dd09bd4194985
Use LONGTEXT for templates in MySQL

TEXT in PostgreSQL is an unlimited column size. However, in MySQL, it is
limited to 2^16 bytes. LONGTEXT allows 2^32 bytes, which is overkill,
but will prevent MySQL from silently truncating this column and thus
rendering the entire tenant's API access moot.

Fixes bug #1210799

Change-Id: Ib2b379db32a8296cf8c5a2434e7615afc59288e3
heat/db/sqlalchemy/migrate_repo/versions/023_raw_template_mysql_longtext.py [new file with mode: 0644]
heat/db/sqlalchemy/models.py