By bradjones1 on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
11.x
Issue links:
Description:
The database schema API now supports the as key for creating generated columns. This is particularly helpful when creating indexes for JSON data columns. Developers may create generated columns by specifying the contents of the AS clause of the column definition in this key.
Generated columns are virtual by default, unless the driver only supports stored generated columns.
See the tests for this changeset for a working example of a generated column which is then used in an index definition.
Impacts:
Module developers