From 2396f2f626f7b3321c2318c9c9f017ab970980c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Biberle?= Date: Thu, 19 Feb 2026 11:46:51 +0100 Subject: [PATCH] feat: add skipDuplicatesCheck field to AddPrimaryKeyCommand Add bool skipDuplicatesCheck = 5 to the AddPrimaryKeyCommand protobuf message. When true, the driver should skip duplicate value detection before adding a primary key. Refs: DMD-981 Co-Authored-By: Claude Opus 4.6 --- .../generated/GPBMetadata/Proto/Table.php | Bin 9528 -> 9557 bytes .../Command/Table/AddPrimaryKeyCommand.php | 34 ++++++++++++++++++ .../proto/table.proto | 1 + 3 files changed, 35 insertions(+) diff --git a/packages/php-storage-driver-common/generated/GPBMetadata/Proto/Table.php b/packages/php-storage-driver-common/generated/GPBMetadata/Proto/Table.php index 20a0c324bbb772ea43ca8a9f555d670983f1412f..910eeec844f00135c54f7382a3badf48d7eb3340 100644 GIT binary patch delta 65 zcmdntb=7M_3lmeT>*hA5e=KZyTq2GsDUgT9A{OoLG`t V?3|IBoGrnsz^K8o`5JqYECBao6`cS8 delta 35 rcmccWwZm&e3lq}|m(6WV|5(@pxkMaOQYQaqH=4YMU25}Z_9R&V0+bD; diff --git a/packages/php-storage-driver-common/generated/Keboola/StorageDriver/Command/Table/AddPrimaryKeyCommand.php b/packages/php-storage-driver-common/generated/Keboola/StorageDriver/Command/Table/AddPrimaryKeyCommand.php index ecfa6e596..f2dd78439 100644 --- a/packages/php-storage-driver-common/generated/Keboola/StorageDriver/Command/Table/AddPrimaryKeyCommand.php +++ b/packages/php-storage-driver-common/generated/Keboola/StorageDriver/Command/Table/AddPrimaryKeyCommand.php @@ -31,6 +31,12 @@ class AddPrimaryKeyCommand extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string primaryKeysNames = 4; */ private $primaryKeysNames; + /** + * skip duplication check when adding primary keys + * + * Generated from protobuf field bool skipDuplicatesCheck = 5; + */ + protected $skipDuplicatesCheck = false; /** * Constructor. @@ -44,6 +50,8 @@ class AddPrimaryKeyCommand extends \Google\Protobuf\Internal\Message * table name * @type array|\Google\Protobuf\Internal\RepeatedField $primaryKeysNames * primary key columns names + * @type bool $skipDuplicatesCheck + * skip duplication check when adding primary keys * } */ public function __construct($data = NULL) { @@ -129,5 +137,31 @@ public function setPrimaryKeysNames($var) return $this; } + /** + * skip duplication check when adding primary keys + * + * Generated from protobuf field bool skipDuplicatesCheck = 5; + * @return bool + */ + public function getSkipDuplicatesCheck() + { + return $this->skipDuplicatesCheck; + } + + /** + * skip duplication check when adding primary keys + * + * Generated from protobuf field bool skipDuplicatesCheck = 5; + * @param bool $var + * @return $this + */ + public function setSkipDuplicatesCheck($var) + { + GPBUtil::checkBool($var); + $this->skipDuplicatesCheck = $var; + + return $this; + } + } diff --git a/packages/php-storage-driver-common/proto/table.proto b/packages/php-storage-driver-common/proto/table.proto index 5ef128586..515fe9c72 100644 --- a/packages/php-storage-driver-common/proto/table.proto +++ b/packages/php-storage-driver-common/proto/table.proto @@ -81,6 +81,7 @@ message AddPrimaryKeyCommand { repeated string path = 1; // path where table is located string tableName = 2; // table name repeated string primaryKeysNames = 4; // primary key columns names + bool skipDuplicatesCheck = 5; // skip duplication check when adding primary keys } message DropPrimaryKeyCommand {