DotaNoobs main site.
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.

74 lines
2.9 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. """empty message
  2. Revision ID: a6f7dd522b7
  3. Revises: None
  4. Create Date: 2014-06-22 22:35:25.691983
  5. """
  6. # revision identifiers, used by Alembic.
  7. revision = 'a6f7dd522b7'
  8. down_revision = None
  9. from alembic import op
  10. import sqlalchemy as sa
  11. def upgrade():
  12. ### commands auto generated by Alembic - please adjust! ###
  13. op.create_table('user',
  14. sa.Column('id', sa.Integer(), nullable=False),
  15. sa.Column('steam_id', sa.String(length=40), nullable=True),
  16. sa.Column('forum_id', sa.Integer(), nullable=True),
  17. sa.Column('teamspeak_id', sa.String(length=200), nullable=True),
  18. sa.Column('nickname', sa.String(length=80), nullable=True),
  19. sa.Column('avatar', sa.String(length=255), nullable=True),
  20. sa.Column('admin', sa.Boolean(), nullable=True),
  21. sa.Column('bio_text', sa.String(length=4096), nullable=True),
  22. sa.Column('created', sa.DateTime(), nullable=True),
  23. sa.Column('last_seen', sa.DateTime(), nullable=True),
  24. sa.Column('twitch', sa.String(length=60), nullable=True),
  25. sa.Column('random_heroes', sa.Json(), nullable=True),
  26. sa.Column('az_completions', sa.Integer(), nullable=True),
  27. sa.Column('public', sa.Boolean(), nullable=True),
  28. sa.Column('logo', sa.Boolean(), nullable=True),
  29. sa.Column('points_from_events', sa.Integer(), nullable=True),
  30. sa.Column('points_from_ts3', sa.Integer(), nullable=True),
  31. sa.Column('points_from_forum', sa.Integer(), nullable=True),
  32. sa.Column('ts3_starttime', sa.DateTime(), nullable=True),
  33. sa.Column('ts3_endtime', sa.DateTime(), nullable=True),
  34. sa.Column('ts3_rewardtime', sa.DateTime(), nullable=True),
  35. sa.Column('ts3_connections', sa.Json(), nullable=True),
  36. sa.Column('last_post_reward', sa.Integer(), nullable=True),
  37. sa.PrimaryKeyConstraint('id'),
  38. sa.UniqueConstraint('steam_id'),
  39. sa.UniqueConstraint('teamspeak_id')
  40. )
  41. op.create_table('teamspeak_data',
  42. sa.Column('id', sa.Integer(), nullable=False),
  43. sa.Column('time', sa.DateTime(), nullable=True),
  44. sa.Column('clients', sa.Json(), nullable=True),
  45. sa.PrimaryKeyConstraint('id')
  46. )
  47. op.create_table('event',
  48. sa.Column('id', sa.Integer(), nullable=False),
  49. sa.Column('name', sa.String(length=200), nullable=True),
  50. sa.Column('desc', sa.String(length=4096), nullable=True),
  51. sa.Column('type', sa.String(length=20), nullable=True),
  52. sa.Column('start_time', sa.DateTime(), nullable=True),
  53. sa.Column('end_time', sa.DateTime(), nullable=True),
  54. sa.Column('points', sa.Integer(), nullable=True),
  55. sa.Column('reward_threshold', sa.Integer(), nullable=True),
  56. sa.Column('total_subchans', sa.Integer(), nullable=True),
  57. sa.Column('channels', sa.Json(), nullable=True),
  58. sa.PrimaryKeyConstraint('id')
  59. )
  60. ### end Alembic commands ###
  61. def downgrade():
  62. ### commands auto generated by Alembic - please adjust! ###
  63. op.drop_table('event')
  64. op.drop_table('teamspeak_data')
  65. op.drop_table('user')
  66. ### end Alembic commands ###