use nextcloud's database type constants
Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
@@ -26,6 +26,7 @@ namespace OCA\Deck\Migration;
|
|||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use OCP\DB\ISchemaWrapper;
|
use OCP\DB\ISchemaWrapper;
|
||||||
|
use OCP\DB\Types;
|
||||||
use OCP\Migration\IOutput;
|
use OCP\Migration\IOutput;
|
||||||
use OCP\Migration\SimpleMigrationStep;
|
use OCP\Migration\SimpleMigrationStep;
|
||||||
|
|
||||||
@@ -35,23 +36,23 @@ class Version10900Date202206151724222 extends SimpleMigrationStep {
|
|||||||
|
|
||||||
if (!$schema->hasTable('deck_sessions')) {
|
if (!$schema->hasTable('deck_sessions')) {
|
||||||
$table = $schema->createTable('deck_sessions');
|
$table = $schema->createTable('deck_sessions');
|
||||||
$table->addColumn('id', 'integer', [
|
$table->addColumn('id', Types::INTEGER, [
|
||||||
'autoincrement' => true,
|
'autoincrement' => true,
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
'unsigned' => true,
|
'unsigned' => true,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('user_id', 'string', [
|
$table->addColumn('user_id', Types::STRING, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
'length' => 64,
|
'length' => 64,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('board_id', 'integer', [
|
$table->addColumn('board_id', Types::INTEGER, [
|
||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('token', 'string', [
|
$table->addColumn('token', Types::STRING, [
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
'length' => 64,
|
'length' => 64,
|
||||||
]);
|
]);
|
||||||
$table->addColumn('last_contact', 'integer', [
|
$table->addColumn('last_contact', Types::INTEGER, [
|
||||||
'notnull' => true,
|
'notnull' => true,
|
||||||
'length' => 20,
|
'length' => 20,
|
||||||
'unsigned' => true,
|
'unsigned' => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user