fix: _extract_global_table_names needs self parameter
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -475,7 +475,7 @@ class MigrationRunner:
|
|||||||
pattern = r'CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?["\']?(\w+)["\']?'
|
pattern = r'CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?["\']?(\w+)["\']?'
|
||||||
return re.findall(pattern, sql, re.IGNORECASE)
|
return re.findall(pattern, sql, re.IGNORECASE)
|
||||||
|
|
||||||
def _extract_global_table_names(sql: str) -> set[str]:
|
def _extract_global_table_names(self, sql: str) -> set[str]:
|
||||||
"""Extract table names marked as global in SQL comments.
|
"""Extract table names marked as global in SQL comments.
|
||||||
|
|
||||||
Looks for `-- GLOBAL TABLE: table_name` comments in the SQL.
|
Looks for `-- GLOBAL TABLE: table_name` comments in the SQL.
|
||||||
|
|||||||
Reference in New Issue
Block a user