From 2a99e689e97c9c1cb863c314ea64e932fa8f4479 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Thu, 27 Jun 2024 10:21:37 -0700 Subject: [PATCH] Fix warning for migration (#1592) --- .../versions/b6e28faea978_rename_tables_to_plurals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pay-api/migrations/versions/b6e28faea978_rename_tables_to_plurals.py b/pay-api/migrations/versions/b6e28faea978_rename_tables_to_plurals.py index a2bceb3ae..da0c19e2c 100644 --- a/pay-api/migrations/versions/b6e28faea978_rename_tables_to_plurals.py +++ b/pay-api/migrations/versions/b6e28faea978_rename_tables_to_plurals.py @@ -136,7 +136,7 @@ def _rename_sequence(m, new_table_name, table): if id_column is not None and id_column.server_default is not None: seq = id_column.server_default.arg.text # format is 'nextval(\'org_id_seq\'::regclass)' - seq_name = re.search("nextval\(\'(.*)\'::regclass", seq).group(1) + seq_name = re.search(r"nextval\(\'(.*)\'::regclass", seq).group(1) new_seq_name = seq_name.replace(table, new_table_name, 1) if seq_name != new_seq_name: print(f'\t<<<<<<<<