Fix Python SyntaxWarning in database migration regex

Use raw string (r"") for SQL containing regex pattern to avoid
Python SyntaxWarning about invalid escape sequence '\.'
This commit is contained in:
Mondo Diaz
2026-01-16 20:15:14 +00:00
parent 4f7433d63b
commit 77fee2e272
2 changed files with 2 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ def _run_migrations():
END $$;
""",
# Migrate existing semver tags to package_versions
"""
r"""
DO $$
BEGIN
IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'package_versions') THEN