fix: Run patch only if the db_type is mariadb
This commit is contained in:
parent
8fac2cf0cb
commit
22103a9fdb
2 changed files with 1 additions and 6 deletions
|
|
@ -29,9 +29,6 @@ class DBTable:
|
|||
# load
|
||||
self.get_columns_from_docfields()
|
||||
|
||||
def __repr__(self):
|
||||
return self.table_name
|
||||
|
||||
def sync(self):
|
||||
if self.is_new():
|
||||
self.create()
|
||||
|
|
@ -204,9 +201,6 @@ class DbColumn:
|
|||
self.unique = unique
|
||||
self.precision = precision
|
||||
|
||||
def __repr__(self):
|
||||
return self.table.table_name + '_' + self.fieldname + '_(' + self.fieldtype + ')'
|
||||
|
||||
def get_definition(self, with_default=1):
|
||||
column_def = get_definition(self.fieldtype, precision=self.precision, length=self.length)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import frappe
|
|||
# The patch only checks for indexes with UNIQUE constraints
|
||||
|
||||
def execute():
|
||||
if frappe.db.db_type != 'mariadb': return
|
||||
all_tables = frappe.db.get_tables()
|
||||
|
||||
final_deletion_map = frappe._dict()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue