@@ -0,0 +1,916 @@
+from sqlalchemy import *%0Afrom migrate import *%0A%0A%0Adef upgrade(migrate_engine):%0A    # Upgrade operations go here. Don't create your own engine; bind%0A    # migrate_engine to your metadata%0A    meta = MetaData()%0A    meta.bind = migrate_engine%0A%0A    # create column:%0A%0A    userdata = Table('userdata', meta, autoload=True)%0A    created_at = Column('created_at', String(150), nullable=True)%0A%0A    userdata.drop_column(created_at)%0A%0A    created_at = Column('created_at', DateTime)%0A%0A    userdata.create_column(created_at)%0A%0Adef downgrade(migrate_engine):%0A    # Operations to reverse the above upgrade go here.%0A    meta = MetaData()%0A    meta.bind = migrate_engine%0A%0A    # create column:%0A    userdata = Table('userdata', meta, autoload=True)%0A    created_at = Column('created_at', DateTime)%0A%0A    userdata.drop_column(created_at)%0A%0A    created_at = Column('created_at', String(150), nullable=True)%0A    userdata.create_column(created_at)%0A

add new column