You are here

public static function BricksFieldTypeTrait::schema in Bricks​ 2.x

File

src/BricksFieldTypeTrait.php, line 13

Class

BricksFieldTypeTrait

Namespace

Drupal\bricks

Code

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;
}