You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. """empty message
  2. Revision ID: 382a65f4b6c9
  3. Revises: 417960a55273
  4. Create Date: 2018-11-10 23:47:51.221299
  5. """
  6. from alembic import op
  7. import sqlalchemy as sa
  8. # revision identifiers, used by Alembic.
  9. revision = '382a65f4b6c9'
  10. down_revision = '417960a55273'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. op.add_column('users', sa.Column('about_me', sa.Text(), nullable=True))
  16. op.add_column('users', sa.Column('last_seen', sa.DateTime(), nullable=True))
  17. op.add_column('users', sa.Column('location', sa.String(length=64), nullable=True))
  18. op.add_column('users', sa.Column('member_since', sa.DateTime(), nullable=True))
  19. op.add_column('users', sa.Column('name', sa.String(length=64), nullable=True))
  20. # ### end Alembic commands ###
  21. def downgrade():
  22. # ### commands auto generated by Alembic - please adjust! ###
  23. op.drop_column('users', 'name')
  24. op.drop_column('users', 'member_since')
  25. op.drop_column('users', 'location')
  26. op.drop_column('users', 'last_seen')
  27. op.drop_column('users', 'about_me')
  28. # ### end Alembic commands ###