From dbb1d2bce8f00a3b9e0d1074841fe835349740a7 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 27 Jun 2023 09:21:24 +0200 Subject: [PATCH] ldap-auth --- .../2a5604bed382_add_string_user_external_auth.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 migrations/versions/2a5604bed382_add_string_user_external_auth.py (limited to 'migrations/versions') diff --git a/migrations/versions/2a5604bed382_add_string_user_external_auth.py b/migrations/versions/2a5604bed382_add_string_user_external_auth.py new file mode 100644 index 00000000..95fe3ac9 --- /dev/null +++ b/migrations/versions/2a5604bed382_add_string_user_external_auth.py @@ -0,0 +1,23 @@ +"""add_string_user_external_auth + +Revision ID: 2a5604bed382 +Revises: bdd38bd755cb +Create Date: 2023-06-17 15:30:40.434393 + +""" +# revision identifiers, used by Alembic. +revision = "2a5604bed382" +down_revision = "bdd38bd755cb" +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.add_column("user", sa.Column("external_auth", sa.String(), nullable=True)) + + +def downgrade(): + op.drop_column("user", "external_auth") -- cgit