You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2023/08/22 13:52:59 UTC

[superset] branch master updated: fix: extend user email size (#25053)

This is an automated email from the ASF dual-hosted git repository.

dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 6975084ea5 fix: extend user email size (#25053)
6975084ea5 is described below

commit 6975084ea5045f0b099b5d8ced4b1068401284f7
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Tue Aug 22 14:52:49 2023 +0100

    fix: extend user email size (#25053)
---
 requirements/base.txt                              |  2 +-
 setup.py                                           |  2 +-
 ...54aca4c8a2_increase_ab_user_email_field_size.py | 52 ++++++++++++++++++++++
 3 files changed, 54 insertions(+), 2 deletions(-)

diff --git a/requirements/base.txt b/requirements/base.txt
index 2389071f46..f8a7728cbe 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -96,7 +96,7 @@ flask==2.2.5
     #   flask-migrate
     #   flask-sqlalchemy
     #   flask-wtf
-flask-appbuilder==4.3.4
+flask-appbuilder==4.3.6
     # via apache-superset
 flask-babel==1.0.0
     # via flask-appbuilder
diff --git a/setup.py b/setup.py
index d26253e164..5612a57bda 100644
--- a/setup.py
+++ b/setup.py
@@ -85,7 +85,7 @@ setup(
         "cryptography>=41.0.0, <41.0.2",
         "deprecation>=2.1.0, <2.2.0",
         "flask>=2.2.5, <3.0.0",
-        "flask-appbuilder>=4.3.4, <5.0.0",
+        "flask-appbuilder>=4.3.6, <5.0.0",
         "flask-caching>=1.10.1, <2.0",
         "flask-compress>=1.13, <2.0",
         "flask-talisman>=1.0.0, <2.0",
diff --git a/superset/migrations/versions/2023-08-22_11-09_ec54aca4c8a2_increase_ab_user_email_field_size.py b/superset/migrations/versions/2023-08-22_11-09_ec54aca4c8a2_increase_ab_user_email_field_size.py
new file mode 100644
index 0000000000..8e2072655f
--- /dev/null
+++ b/superset/migrations/versions/2023-08-22_11-09_ec54aca4c8a2_increase_ab_user_email_field_size.py
@@ -0,0 +1,52 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+"""Increase ab_user.email field size
+
+Revision ID: ec54aca4c8a2
+Revises: 9f4a086c2676
+Create Date: 2023-08-22 11:09:48.577457
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = "ec54aca4c8a2"
+down_revision = "9f4a086c2676"
+
+import sqlalchemy as sa
+from alembic import op
+
+
+def upgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    with op.batch_alter_table("ab_user") as batch_op:
+        batch_op.alter_column(
+            "email",
+            existing_type=sa.VARCHAR(length=64),
+            type_=sa.String(length=320),
+            nullable=False,
+        )
+
+
+def downgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    with op.batch_alter_table("ab_user") as batch_op:
+        batch_op.alter_column(
+            "email",
+            existing_type=sa.VARCHAR(length=320),
+            type_=sa.String(length=64),
+            nullable=False,
+        )