Skip to content

Commit

Permalink
Define a few common properties in ADOFieldObject
Browse files Browse the repository at this point in the history
Fixes #906
  • Loading branch information
dregad committed Mar 12, 2023
1 parent 404fb7b commit 92443a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions adodb.inc.php
Expand Up @@ -243,6 +243,11 @@ class ADOFieldObject {
*/
public $type = '';

/**
* @var int|null Numeric field scale.
*/
public $scale;

/**
* @var bool True if field can be NULL
*/
Expand All @@ -258,6 +263,11 @@ class ADOFieldObject {
*/
public $unique = false;

/**
* @var bool True if field is automatically incremented
*/
public $auto_increment = false;

/**
* @var bool True if field has a default value
*/
Expand Down

0 comments on commit 92443a3

Please sign in to comment.