Skip to content

Commit

Permalink
allow numbers in table name and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Programátor authored and Programátor committed Jul 27, 2020
1 parent f2d151b commit b0cac38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zrny/mksql",
"description": "Creating and AutoUpdating tables in MySQL",
"version": "0.1.4",
"version": "0.1.5",
"type": "library",
"keywords": [
"sql",
Expand Down
4 changes: 2 additions & 2 deletions src/ColumnType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ class ColumnType
public function __construct(int $type, array $params = [])
{
$this->Type = $type;
$this->Params[] = $params;
$this->Params = $params;
}


private $Params = [];

public function addParam($par)
{
$this->Params = $par;
$this->Params[] = $par;
return $this;
}

Expand Down

0 comments on commit b0cac38

Please sign in to comment.