Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus
This commit is contained in:
commit
f74d1907d9
21 files changed
+759
-555
No files matched your search
@@ -7,19 +7,21 @@ class Field implements \Ulmus\Annotation\Annotation {
|
||||
public string $type;
|
||||
|
||||
public string $name;
|
||||
|
||||
|
||||
public int $length;
|
||||
|
||||
public int $precision;
|
||||
|
||||
public array $attributes = [];
|
||||
|
||||
public bool $nullable = false;
|
||||
|
||||
|
||||
public function __construct(? string $type = null, ? int $length = null)
|
||||
{
|
||||
if ( $type !== null ) {
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
|
||||
if ( $length !== null ) {
|
||||
$this->length = $length;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ class ForeignKey extends Id {
|
||||
|
||||
unset($this->nullable);
|
||||
$this->attributes['primary_key'] = false;
|
||||
$this->attributes['auto_increment'] = false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user