Elgg
Version master
engine
schema
migrations
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
}
AddBooleanValueTypes
Definition:
20220125084422_add_boolean_value_types.php:6
AddBooleanValueTypes\change
change()
Change Method.
Definition:
20220125084422_add_boolean_value_types.php:18
$metadata
$metadata
Output annotation metadata.
Definition:
metadata.php:9
Generated on Fri Aug 29 2025 00:01:58 for Elgg by
1.9.1