Elgg  Version master
20220125084422_add_boolean_value_types.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
4 use Phinx\Migration\AbstractMigration;
5 
6 final class AddBooleanValueTypes extends AbstractMigration {
18  public function change(): void {
19 
20  $metadata = $this->table('metadata');
21  $metadata->changeColumn('value_type', 'enum', ['values' => ['integer', 'text', 'bool']])->update();
22 
23  $annotations = $this->table('annotations');
24  $annotations->changeColumn('value_type', 'enum', ['values' => ['integer', 'text', 'bool']])->update();
25  }
26 }
$metadata
Output annotation metadata.
Definition: metadata.php:9