mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 15:52:21 -05:00
22 lines
417 B
Python
22 lines
417 B
Python
|
|
"""
|
||
|
|
|
||
|
|
Revision ID: 0405_add_preferred_timezone
|
||
|
|
Revises: 0404_expire_invites
|
||
|
|
|
||
|
|
"""
|
||
|
|
from alembic import op
|
||
|
|
from flask import current_app
|
||
|
|
import sqlalchemy as sa
|
||
|
|
|
||
|
|
|
||
|
|
down_revision = "0404_expire_invites"
|
||
|
|
revision = "0405_add_preferred_timezone"
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade():
|
||
|
|
op.execute("ALTER TABLE users ADD COLUMN preferred_timezone text")
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade():
|
||
|
|
op.execute("ALTER TABLE users DROP COLUMN preferred_timezone text")
|