public static function BricksFieldTypeTrait::schema in Bricks 8
File
- src/
Plugin/ Field/ FieldType/ BricksFieldTypeTrait.php, line 13
Class
Namespace
Drupal\bricks\Plugin\Field\FieldTypeCode
public static function schema(FieldStorageDefinitionInterface $field_definition) {
$schema = parent::schema($field_definition);
$schema['columns']['depth'] = [
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
];
$schema['columns']['options'] = [
'type' => 'blob',
'size' => 'normal',
'not null' => FALSE,
'serialize' => TRUE,
];
return $schema;
}