calendarwatch_frontend/migrations/versions/66f62f457a22_.py
raphael c89ecd7134 adds backend script which can be run as a cronjob every n minutes to generate new json files for google calendars
- database updated to save google credentials
- database updated to save json calendar information
- json still saved as a json file under userinfo/<user.id>/calendarevents.json
2020-04-24 17:54:56 +00:00

29 lines
671 B
Python

"""empty message
Revision ID: 66f62f457a22
Revises: 7bbc2215d87d
Create Date: 2020-04-24 17:12:45.275636
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '66f62f457a22'
down_revision = '7bbc2215d87d'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('user', sa.Column('google_credentials', sa.String(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('user', 'google_credentials')
# ### end Alembic commands ###