def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
python类LONGTEXT的实例源码
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
def LongText():
# TODO(rakhmerov): Need to do for postgres.
return sa.Text().with_variant(mysql.LONGTEXT(), 'mysql')
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
def load_dialect_impl(self, dialect):
if dialect.name == 'mysql':
return dialect.type_descriptor(mysql.LONGTEXT())
else:
return self.impl
2e09867c0c38_add_comment_data_to_post.py 文件源码
项目:CivilServant
作者: mitmedialab
项目源码
文件源码
阅读 25
收藏 0
点赞 0
评论 0
def upgrade_development():
### commands auto generated by Alembic - please adjust! ###
op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True))
op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True))
op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True))
### end Alembic commands ###
2e09867c0c38_add_comment_data_to_post.py 文件源码
项目:CivilServant
作者: mitmedialab
项目源码
文件源码
阅读 31
收藏 0
点赞 0
评论 0
def upgrade_test():
### commands auto generated by Alembic - please adjust! ###
op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True))
op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True))
op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True))
### end Alembic commands ###
2e09867c0c38_add_comment_data_to_post.py 文件源码
项目:CivilServant
作者: mitmedialab
项目源码
文件源码
阅读 23
收藏 0
点赞 0
评论 0
def upgrade_production():
### commands auto generated by Alembic - please adjust! ###
op.add_column('posts', sa.Column('comment_data', mysql.LONGTEXT(), nullable=True))
op.add_column('posts', sa.Column('comments_queried_at', sa.DateTime(), nullable=True))
op.add_column('posts', sa.Column('created_at', sa.DateTime(), nullable=True))
### end Alembic commands ###
56eebc668baa_upgrade_the_contents_column_from_.py 文件源码
项目:quilt
作者: quiltdata
项目源码
文件源码
阅读 25
收藏 0
点赞 0
评论 0
def upgrade():
op.alter_column('instance', 'contents',
existing_type=mysql.MEDIUMTEXT(collation='utf8_bin'),
type_=mysql.LONGTEXT(collation='utf8_bin'),
existing_nullable=False)
56eebc668baa_upgrade_the_contents_column_from_.py 文件源码
项目:quilt
作者: quiltdata
项目源码
文件源码
阅读 24
收藏 0
点赞 0
评论 0
def downgrade():
op.alter_column('instance', 'contents',
existing_type=mysql.LONGTEXT(collation='utf8_bin'),
type_=mysql.MEDIUMTEXT(collation='utf8_bin'),
existing_nullable=False)