Fix compatibility with doctrine/dbal 3.0
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6a17dfd62c
commit
6fdf3301e1
|
|
@ -25,7 +25,7 @@ declare(strict_types=1);
|
||||||
namespace OCA\Registration\Migration;
|
namespace OCA\Registration\Migration;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Doctrine\DBAL\Types\Type;
|
use Doctrine\DBAL\Types\Types;
|
||||||
use OCP\DB\ISchemaWrapper;
|
use OCP\DB\ISchemaWrapper;
|
||||||
use OCP\Migration\IOutput;
|
use OCP\Migration\IOutput;
|
||||||
use OCP\Migration\SimpleMigrationStep;
|
use OCP\Migration\SimpleMigrationStep;
|
||||||
|
|
@ -43,34 +43,34 @@ class Version0005Date20200710135953 extends SimpleMigrationStep {
|
||||||
|
|
||||||
if (!$schema->hasTable('registration')) {
|
if (!$schema->hasTable('registration')) {
|
||||||
$table = $schema->createTable('registration');
|
$table = $schema->createTable('registration');
|
||||||
$table->addColumn('id', Type::INTEGER, [
|
$table->addColumn('id', Types::INTEGER, [
|
||||||
'autoincrement' => true,
|
'autoincrement' => true,
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
'unsigned' => true,
|
'unsigned' => true,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('email', Type::STRING, [
|
$table->addColumn('email', Types::STRING, [
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('username', Type::STRING, [
|
$table->addColumn('username', Types::STRING, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('password', Type::STRING, [
|
$table->addColumn('password', Types::STRING, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('displayname', Type::STRING, [
|
$table->addColumn('displayname', Types::STRING, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('email_confirmed', Type::BOOLEAN, [
|
$table->addColumn('email_confirmed', Types::BOOLEAN, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
'default' => false,
|
'default' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('token', Type::STRING, [
|
$table->addColumn('token', Types::STRING, [
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('client_secret', Type::STRING, [
|
$table->addColumn('client_secret', Types::STRING, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('requested', Type::DATETIME, [
|
$table->addColumn('requested', Types::DATETIME_MUTABLE, [
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
]);
|
]);
|
||||||
$table->setPrimaryKey(['id']);
|
$table->setPrimaryKey(['id']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue