Added GitHub and Google OAuth

This commit is contained in:
Mawoka
2022-06-11 16:48:24 +02:00
parent 7e12c05a9a
commit 39dce66b78
13 changed files with 480 additions and 63 deletions
@@ -0,0 +1,29 @@
"""added github_oauth
Revision ID: da778d551bf4
Revises: 0c081a52ab8a
Create Date: 2022-06-11 16:41:35.761391
"""
from alembic import op
import sqlalchemy as sa
import ormar
# revision identifiers, used by Alembic.
revision = "da778d551bf4"
down_revision = "0c081a52ab8a"
branch_labels = None
depends_on = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.execute("ALTER TYPE userauthtypes ADD VALUE 'GITHUB';")
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.execute("ALTER TYPE userauthtypes DROP VALUE 'GITHUB';")
# ### end Alembic commands ###