From ad19bab5950a4b368caa6655b5b95f01cdb12e00 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 28 Mar 2024 23:25:35 -0300 Subject: [PATCH] fix: comlumn type The default is string and these columns are varchar, not integer Signed-off-by: Vitor Mattos --- lib/Migration/Version8000Date20230420125331.php | 2 +- lib/Migration/Version8000Date20231102215331.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Migration/Version8000Date20230420125331.php b/lib/Migration/Version8000Date20230420125331.php index 4265f7014a..429097935a 100644 --- a/lib/Migration/Version8000Date20230420125331.php +++ b/lib/Migration/Version8000Date20230420125331.php @@ -130,7 +130,7 @@ public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array 'file_user_id' => $insert->createNamedParameter($row['file_id'], IQueryBuilder::PARAM_INT), 'mandatory' => $insert->createNamedParameter(1, IQueryBuilder::PARAM_INT), 'identifier_key' => $insert->createNamedParameter('account'), - 'identifier_value' => $insert->createNamedParameter($row['user_id'], IQueryBuilder::PARAM_INT), + 'identifier_value' => $insert->createNamedParameter($row['user_id']), 'attempts' => $insert->createNamedParameter($row['signed'] ? 1 : 0, IQueryBuilder::PARAM_INT), 'identified_at_date' => $insert->createNamedParameter($row['signed'] ? new \DateTime('@' . $row['signed']): null, IQueryBuilder::PARAM_DATE), 'last_attempt_date' => $insert->createNamedParameter($row['signed'] ? new \DateTime('@' . $row['signed']): null, IQueryBuilder::PARAM_DATE), diff --git a/lib/Migration/Version8000Date20231102215331.php b/lib/Migration/Version8000Date20231102215331.php index 9932c9c761..6a37f2ac39 100644 --- a/lib/Migration/Version8000Date20231102215331.php +++ b/lib/Migration/Version8000Date20231102215331.php @@ -140,7 +140,7 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array ->values([ 'id' => $qbRestore->createNamedParameter($row['id'], IQueryBuilder::PARAM_INT), 'file_id' => $qbRestore->createNamedParameter($row['file_id'], IQueryBuilder::PARAM_INT), - 'uuid' => $qbRestore->createNamedParameter($row['uuid'], IQueryBuilder::PARAM_INT), + 'uuid' => $qbRestore->createNamedParameter($row['uuid']), 'display_name' => $qbRestore->createNamedParameter($row['display_name']), 'description' => $qbRestore->createNamedParameter($row['description']), 'created_at' => $qbRestore->createNamedParameter($row['created_at'], IQueryBuilder::PARAM_INT),