Skip to content

Commit

Permalink
fix: comlumn type
Browse files Browse the repository at this point in the history
The default is string and these columns are varchar, not integer

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Mar 29, 2024
1 parent 1325629 commit ad19bab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20230420125331.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20231102215331.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit ad19bab

Please sign in to comment.