Skip to content

Commit

Permalink
Fix for OUTPUT INSERTED (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdef committed Nov 2, 2022
1 parent 93aa2d1 commit 65319ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Schema/ColumnSchema.php
Expand Up @@ -23,6 +23,7 @@ class ColumnSchema implements ColumnSchemaInterface
private int|null $scale = null;
private bool $isPrimaryKey = false;
private bool $autoIncrement = false;
private bool $computed = false;
private bool $unsigned = false;
private string|null $comment = null;
private string|null $extra = null;
Expand Down Expand Up @@ -106,6 +107,11 @@ public function isAutoIncrement(): bool
return $this->autoIncrement;
}

public function isComputed(): bool
{
return $this->computed;
}

public function isUnsigned(): bool
{
return $this->unsigned;
Expand Down Expand Up @@ -181,6 +187,11 @@ public function autoIncrement(bool $value): void
$this->autoIncrement = $value;
}

public function computed(bool $value): void
{
$this->computed = $value;
}

public function unsigned(bool $value): void
{
$this->unsigned = $value;
Expand Down
7 changes: 7 additions & 0 deletions src/Schema/ColumnSchemaInterface.php
Expand Up @@ -96,6 +96,11 @@ public function isPrimaryKey(): bool;
*/
public function isAutoIncrement(): bool;

/**
* @return bool whether this column is computed
*/
public function isComputed(): bool;

/**
* @return bool whether this column is unsigned. This is only meaningful when {@see type} is `smallint`, `integer`
* or `bigint`.
Expand Down Expand Up @@ -136,6 +141,8 @@ public function primaryKey(bool $value): void;

public function autoIncrement(bool $value): void;

public function computed(bool $value): void;

public function unsigned(bool $value): void;

public function comment(string|null $value): void;
Expand Down

0 comments on commit 65319ee

Please sign in to comment.