Skip to content

Commit ad81e66

Browse files
committedJan 23, 2019
Update gpkg UpdateTableColumn add argument new_comment
1 parent 9184a5b commit ad81e66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎python/plugins/db_manager/db_plugins/gpkg/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def deleteTableColumn(self, table, column):
644644
return lyr.DeleteField(idx) == 0
645645
return False
646646

647-
def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None):
647+
def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None, new_comment=None):
648648
if self.isGeometryColumn(table, column):
649649
return False
650650

‎python/plugins/db_manager/db_plugins/postgis/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def deleteTableColumn(self, table, column):
857857
sql = u"ALTER TABLE %s DROP %s" % (self.quoteId(table), self.quoteId(column))
858858
self._execute_and_commit(sql)
859859

860-
def updateTableColumn(self, table, column, new_name=None, data_type=None, not_null=None, default=None, comment=None, other=None):
860+
def updateTableColumn(self, table, column, new_name=None, data_type=None, not_null=None, default=None, comment=None):
861861
if new_name is None and data_type is None and not_null is None and default is None and comment is None:
862862
return
863863

0 commit comments

Comments
 (0)
Please sign in to comment.