fix: revert pg incompatible change
This commit is contained in:
parent
c4230f8760
commit
fd15ab5329
1 changed files with 1 additions and 2 deletions
|
|
@ -186,8 +186,7 @@ def is_autoincremented(doctype: str, meta: Optional["Meta"] = None) -> bool:
|
|||
if site_map.get(doctype) is None:
|
||||
site_map[doctype] = (
|
||||
frappe.db.sql(
|
||||
f"""select data_type FROM information_schema.columns where column_name = 'name' and table_name = 'tab{doctype}' and table_schema = %s""",
|
||||
frappe.db.db_name
|
||||
f"""select data_type FROM information_schema.columns where column_name = 'name' and table_name = 'tab{doctype}'""",
|
||||
)[0][0]
|
||||
== "bigint"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue