Skip to content
Permalink
Browse files

Update gpkg UpdateTableColumn add argument new_comment

  • Loading branch information
Ailurupoda committed Jan 23, 2019
1 parent 9184a5b commit ad81e66daa81d9df69eb50a56e2217ef38d8675c
@@ -644,7 +644,7 @@ def deleteTableColumn(self, table, column):
return lyr.DeleteField(idx) == 0
return False

def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None):
def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None, new_comment=None):
if self.isGeometryColumn(table, column):
return False

@@ -857,7 +857,7 @@ def deleteTableColumn(self, table, column):
sql = u"ALTER TABLE %s DROP %s" % (self.quoteId(table), self.quoteId(column))
self._execute_and_commit(sql)

def updateTableColumn(self, table, column, new_name=None, data_type=None, not_null=None, default=None, comment=None, other=None):
def updateTableColumn(self, table, column, new_name=None, data_type=None, not_null=None, default=None, comment=None):
if new_name is None and data_type is None and not_null is None and default is None and comment is None:
return

0 comments on commit ad81e66

Please sign in to comment.
You can’t perform that action at this time.