@@ -0,0 +1,1203 @@
+# Copyright (C) 2017 Google Inc.%0A# Licensed under http://www.apache.org/licenses/LICENSE-2.0 %3Csee LICENSE file%3E%0A%0A%22%22%22%0ABring vendors' start_date and end_date columns into conformity with the model%0A%0ACreate Date: 2017-02-03 15:05:57.538217%0A%22%22%22%0A# disable Invalid constant name pylint warning for mandatory Alembic variables.%0A# pylint: disable=invalid-name%0A%0Afrom alembic import op%0Afrom sqlalchemy.dialects import mysql%0A%0A# revision identifiers, used by Alembic.%0Arevision = '6e9a3ed063d2'%0Adown_revision = '24b94ce0860c'%0A%0A%0Adef upgrade():%0A  %22%22%22Upgrade database schema and/or data, creating a new revision.%22%22%22%0A  op.alter_column('vendors', 'start_date', type_=mysql.DATE(),%0A                  existing_type=mysql.DATETIME(), nullable=True)%0A  op.alter_column('vendors', 'end_date', type_=mysql.DATE(),%0A                  existing_type=mysql.DATETIME(), nullable=True)%0A%0A%0Adef downgrade():%0A  %22%22%22Downgrade database schema and/or data back to the previous revision.%22%22%22%0A  op.alter_column('vendors', 'start_date', type_=mysql.DATETIME(),%0A                  existing_type=mysql.DATE(), nullable=True)%0A  op.alter_column('vendors', 'end_date', type_=mysql.DATETIME(),%0A                  existing_type=mysql.DATE(), nullable=True)%0A

Fix column data type in vendors table