From 21603f1eff4c033bd8462bf2a8efab17caa6cd5e Mon Sep 17 00:00:00 2001 From: PatilHrushikesh Date: Sun, 22 Sep 2024 23:14:55 +0530 Subject: [PATCH] Add colon (:) to invalid char for revision name As colon is used in revision range, it shouldn't be used in revision name --- alembic/script/revision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/script/revision.py b/alembic/script/revision.py index c3108e98..f68fc954 100644 --- a/alembic/script/revision.py +++ b/alembic/script/revision.py @@ -45,7 +45,7 @@ _TR = TypeVar("_TR", bound=Optional[_RevisionOrStr]) _relative_destination = re.compile(r"(?:(.+?)@)?(\w+)?((?:\+|-)\d+)") -_revision_illegal_chars = ["@", "-", "+"] +_revision_illegal_chars = ["@", "-", "+", ":"] class _CollectRevisionsProtocol(Protocol):