getTable('properties'); if ($propertiesTable->hasColumn('valuetype')) { return null; } $propertiesTable->addColumn('valuetype', Types::SMALLINT, [ 'notnull' => false, 'default' => CustomPropertiesBackend::PROPERTY_TYPE_STRING ]); return $schema; } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } }