mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 10:20:02 +07:00
Recommend our own type constants instead of Doctrine's
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
@@ -46,7 +46,7 @@ Some (minor) breaking changes were inevitable. Here's the summary
|
||||
* ``$queryBuilder->execute()->errorInfo()`` was removed from Doctrine
|
||||
* ``$queryBuilder->execute()->setFetchMode()`` was removed from Doctrine
|
||||
* ``$connection->prepare()->execute()`` previously returned ``false`` under some error conditions, it now always gives you an ``IResult`` or throws an exception
|
||||
* ``\Doctrine\DBAL\Types\Type::*`` type constants were moved, which some apps used for column type constants in apps. Use ``\Doctrine\DBAL\Types\Types::*`` or inline the values.
|
||||
* ``\Doctrine\DBAL\Types\Type::*`` type constants were moved, which some apps used for column type constants in apps. Use the new ``\OCP\DB\Types::*`` as a replacement.
|
||||
|
||||
The details of this change can also be seen in the `pull request on Github <https://github.com/nextcloud/server/pull/24948>`__ and in the upstream `dbal 3.0.xx upgrade document <https://github.com/doctrine/dbal/blob/3.0.x/UPGRADE.md>`__.
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ With this step the new column gets created:
|
||||
|
||||
$table = $schema->getTable('twofactor_backupcodes');
|
||||
|
||||
$table->addColumn('user_id', Types::STRING, [
|
||||
$table->addColumn('user_id', \OCP\DB\Types::STRING, [
|
||||
'notnull' => true,
|
||||
'length' => 64,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user