]> git.lizzy.rs Git - cheatdb.git/blob - migrations/versions/aa6d21889d22_.py
Add download counting
[cheatdb.git] / migrations / versions / aa6d21889d22_.py
1 """empty message
2
3 Revision ID: aa6d21889d22
4 Revises: b254f55eadd2
5 Create Date: 2018-05-29 18:28:28.540416
6
7 """
8 from alembic import op
9 import sqlalchemy as sa
10
11
12 # revision identifiers, used by Alembic.
13 revision = 'aa6d21889d22'
14 down_revision = 'b254f55eadd2'
15 branch_labels = None
16 depends_on = None
17
18
19 def upgrade():
20     # ### commands auto generated by Alembic - please adjust! ###
21     op.alter_column('user', 'password',
22                existing_type=sa.VARCHAR(length=255),
23                nullable=True,
24                existing_server_default=sa.text("''"))
25     # ### end Alembic commands ###
26
27
28 def downgrade():
29     # ### commands auto generated by Alembic - please adjust! ###
30     op.alter_column('user', 'password',
31                existing_type=sa.VARCHAR(length=255),
32                nullable=False,
33                existing_server_default=sa.text("''"))
34     # ### end Alembic commands ###