mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
"""empty message
|
|
|
|
Revision ID: abf0f671ba27
|
|
Revises: bbad7e33a780
|
|
Create Date: 2020-06-30 21:09:35.692876
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
import sqlalchemy_utils
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'abf0f671ba27'
|
|
down_revision = 'bbad7e33a780'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('flask_dance_oauth',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('provider', sa.String(length=50), nullable=False),
|
|
sa.Column('created_at', sa.DateTime(), nullable=False),
|
|
sa.Column('token', sqlalchemy_utils.types.json.JSONType(), nullable=False),
|
|
sa.Column('provider_user_id', sa.String(length=256), nullable=False),
|
|
sa.Column('user_id', sa.Integer(), nullable=False),
|
|
sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('provider_user_id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('flask_dance_oauth')
|
|
# ### end Alembic commands ###
|