-
-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes issue #2017
- Loading branch information
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
alembic/versions/31c3c2ff9fab_drop_social_network_logins.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""drop social network logins | ||
Revision ID: 31c3c2ff9fab | ||
Revises: a791f9de9ac3 | ||
Create Date: 2021-02-27 10:17:17.122501 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '31c3c2ff9fab' | ||
down_revision = 'a791f9de9ac3' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.drop_column('user', 'twitter_user_id') | ||
op.drop_column('user', 'google_user_id') | ||
op.drop_column('user', 'facebook_user_id') | ||
|
||
|
||
def downgrade(): | ||
op.add_column('user', sa.Column('twitter_user_id', sa.BigInteger, unique=True)) | ||
op.add_column('user', sa.Column('google_user_id', sa.BigInteger, unique=True)) | ||
op.add_column('user', sa.Column('facebook_user_id', sa.BigInteger, unique=True)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters