aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-06-27 09:21:24 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2023-06-27 09:21:24 +0200
commitdbb1d2bce8f00a3b9e0d1074841fe835349740a7 (patch)
treeea425b1c164a3901a047f6a7ffddbc48378f7e27 /migrations/versions
parentAddresses some flake8 warnings. (diff)
downloadnewspipe-dbb1d2bce8f00a3b9e0d1074841fe835349740a7.tar.gz
newspipe-dbb1d2bce8f00a3b9e0d1074841fe835349740a7.tar.bz2
newspipe-dbb1d2bce8f00a3b9e0d1074841fe835349740a7.zip
[PATCH] ldap-auth
Diffstat (limited to 'migrations/versions')
-rw-r--r--migrations/versions/2a5604bed382_add_string_user_external_auth.py23
1 files changed, 23 insertions, 0 deletions
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")
bgstack15