Skip to content

Commit 5d33083

Browse files
committed
Revert change to AlterOperation for now
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 406636f commit 5d33083

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Components/AlterOperation.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,6 @@ final class AlterOperation implements Component
271271
*/
272272
public $partitions;
273273

274-
/**
275-
* Unparsed tokens.
276-
*/
277-
public TokensList $unknown;
278-
279274
/**
280275
* @param OptionsArray $options options of alter operation
281276
* @param Expression|string|null $field altered field
@@ -286,12 +281,12 @@ public function __construct(
286281
$options = null,
287282
$field = null,
288283
$partitions = null,
289-
array $unknown = []
284+
public array $unknown = []
290285
) {
291286
$this->partitions = $partitions;
292287
$this->options = $options;
293288
$this->field = $field;
294-
$this->unknown = new TokensList($unknown);
289+
$this->unknown = $unknown;
295290
}
296291

297292
/**
@@ -541,7 +536,7 @@ public static function build($component): string
541536
$ret .= $component->field . ' ';
542537
}
543538

544-
$ret .= $afterFieldsOptions . $component->unknown->build();
539+
$ret .= $afterFieldsOptions . TokensList::buildFromArray($component->unknown);
545540

546541
if (isset($component->partitions)) {
547542
$ret .= PartitionDefinition::buildAll($component->partitions);

0 commit comments

Comments
 (0)