hasTable('groups')) { $table = $schema->getTable('groups'); $table->addColumn('displayname', Types::STRING, [ 'notnull' => true, 'length' => 255, // Will be overwritten in postSchemaChange, but Oracle can not save // empty strings in notnull columns 'default' => 'name', ]); } 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) { $query = $this->connection->getQueryBuilder(); $query->update('groups') ->set('displayname', 'gid'); $query->execute(); } }