@@ -0,0 +1,1494 @@
+# Copyright 2016 OpenStack Foundation.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#    http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or%0A# implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0A%22%22%22Increase the size of the text columns storing object model in the task table%0A%0ARevision ID: 016%0ARevises: 015%0ACreate Date: 2016-08-30 10:45:00%0A%0A%22%22%22%0A%0A# revision identifiers, used by Alembic.%0Arevision = '016'%0Adown_revision = '015'%0A%0Afrom alembic import op%0Aimport sqlalchemy as sa%0Aimport sqlalchemy.dialects.mysql as sa_mysql%0A%0AMYSQL_ENGINE = 'InnoDB'%0AMYSQL_CHARSET = 'utf8'%0A%0A%0Adef upgrade():%0A    engine = op.get_bind()%0A    if engine.dialect.dialect_description.startswith('mysql'):%0A        with op.batch_alter_table('task') as batch_op:%0A            batch_op.alter_column('description',%0A                                  type_=sa_mysql.LONGTEXT())%0A%0A%0Adef downgrade():%0A    engine = op.get_bind()%0A    if engine.dialect.dialect_description.startswith('mysql'):%0A        with op.batch_alter_table('task') as batch_op:%0A            batch_op.alter_column('description',%0A                                  type_=sa.TEXT())%0A

Increase description column length in task table