Skip to content

Commit 60dcc28

Browse files
authored
feat(database): add raw to CreateTableStatement (#868)
1 parent 58aadc9 commit 60dcc28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Tempest/Database/src/QueryStatements/CreateTableStatement.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ public function index(string ...$columns): self
220220
return $this;
221221
}
222222

223+
public function raw(string $statement): self
224+
{
225+
$this->statements[] = new RawStatement($statement);
226+
227+
return $this;
228+
}
229+
223230
public function compile(DatabaseDialect $dialect): string
224231
{
225232
$createTable = sprintf(

0 commit comments

Comments
 (0)