Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Fix mysql default charset=latin1 issue (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kujyp committed Apr 11, 2018
1 parent 809124c commit 4cd6e51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion migrations/versions/6c0fbb516dfd_.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def upgrade():
sa.Column('library_id', mysql.INTEGER(display_width=11, unsigned=True), nullable=False),
sa.ForeignKeyConstraint(['library_id'], ['Libraries.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('email')
sa.UniqueConstraint('email'),
mysql_charset='utf8'
)
op.alter_column('Libraries', 'name',
existing_type=mysql.VARCHAR(length=20),
Expand Down
3 changes: 2 additions & 1 deletion migrations/versions/ad3c95a8a551_.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def upgrade():
sa.Column('fac_self_promo', mysql.TINYINT(display_width=1), nullable=True),
sa.Column('fac_other', sa.Text(), nullable=True),
sa.Column('req_speaker', sa.Text(), nullable=True),
sa.PrimaryKeyConstraint('id')
sa.PrimaryKeyConstraint('id'),
mysql_charset='utf8'
)
# ### end Alembic commands ###

Expand Down

0 comments on commit 4cd6e51

Please sign in to comment.