Bez popisu

6b6aa97e1b29_.py 920B

123456789101112131415161718192021222324252627282930313233343536
  1. """empty message
  2. Revision ID: 6b6aa97e1b29
  3. Revises:
  4. Create Date: 2018-05-31 15:26:00.812259
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '6b6aa97e1b29'
  10. down_revision = None
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.create_table('User',
  16. sa.Column('id', sa.Integer(), nullable=False),
  17. sa.Column('username', sa.String(length=120), nullable=True),
  18. sa.Column('email', sa.String(length=120), nullable=True),
  19. sa.Column('password', sa.String(length=30), nullable=True),
  20. sa.PrimaryKeyConstraint('id'),
  21. sa.UniqueConstraint('email'),
  22. sa.UniqueConstraint('username')
  23. )
  24. # ### end Alembic commands ###
  25. def downgrade():
  26. # ### commands auto generated by Alembic - please adjust! ###
  27. op.drop_table('User')
  28. # ### end Alembic commands ###