Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to convert a paragraphs field to bricks_revisions field?
Conceptually it’s pretty easy:
1) Add two columns in the field storage table, see for the reference:
```/**
* Helper function for FieldItemInterface::schema().
*/
function _bricks_field_schema_alter(&$schema) {
$schema['columns']['depth'] = [
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
];
$schema['columns']['options'] = [
'type' => 'blob',
'size' => 'normal',
'not null' => FALSE,
'serialize' => TRUE,
];
}
```
2) Reimport content somehow
But there is no automated “one-click” way right now.
Comments