Skip to content

Commit 0f774fc

Browse files
committed
🚨 remove redundant f-strings in default value translations for MariaDB functions
1 parent b454fc1 commit 0f774fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mysql_to_sqlite3/transporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ def _translate_default_from_mysql_to_sqlite(
327327
return f"DEFAULT '{int(column_default)}'"
328328
if isinstance(column_default, str):
329329
if column_default.lower() == "curtime()":
330-
return f"DEFAULT CURRENT_TIME"
330+
return "DEFAULT CURRENT_TIME"
331331
if column_default.lower() == "curdate()":
332-
return f"DEFAULT CURRENT_DATE"
332+
return "DEFAULT CURRENT_DATE"
333333
if column_default.lower() in {"current_timestamp()", "now()"}:
334-
return f"DEFAULT CURRENT_TIMESTAMP"
334+
return "DEFAULT CURRENT_TIMESTAMP"
335335
if column_extra in {"DEFAULT_GENERATED", "default_generated"}:
336336
if column_default.upper() in {
337337
"CURRENT_TIME",

0 commit comments

Comments
 (0)