diff options
Diffstat (limited to 'src/Utils/Table.php')
-rw-r--r-- | src/Utils/Table.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Utils/Table.php b/src/Utils/Table.php index aa8cea6..6b17457 100644 --- a/src/Utils/Table.php +++ b/src/Utils/Table.php @@ -122,6 +122,11 @@ class Table $ret[$field->name]['on_update_current_timestamp'] = true; } } + + if (($option = $field->options->has('AS'))) { + $ret[$field->name]['generated'] = true; + $ret[$field->name]['expr'] = $option->expr; + } } } |