calendarwatch_frontend/migrations/versions/7bbc2215d87d_.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
659 B
Python

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