Skip to content

Commit

Permalink
migrated to new data model
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKayAce committed Jul 12, 2019
1 parent 44f09bb commit 6764c01
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Binary file modified app.db
Binary file not shown.
30 changes: 30 additions & 0 deletions migrations/versions/23d50de09cbd_added_fields_to_usermodel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""added fields to usermodel
Revision ID: 23d50de09cbd
Revises: 03a5ab465d0b
Create Date: 2019-07-12 13:16:37.191389
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '23d50de09cbd'
down_revision = '03a5ab465d0b'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('user', sa.Column('about_me', sa.String(length=140), nullable=True))
op.add_column('user', sa.Column('last_seen', sa.DateTime(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('user', 'last_seen')
op.drop_column('user', 'about_me')
# ### end Alembic commands ###

0 comments on commit 6764c01

Please sign in to comment.