Specify char length in migration (postgres)

pull/162/head
Varun Patil 2022-10-31 23:21:01 -07:00
parent 8698197ed5
commit c640101c32
1 changed files with 1 additions and 1 deletions

View File

@ -81,6 +81,6 @@ class Version400503Date20221101033144 extends SimpleMigrationStep
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void
{
// Update oc_memories to set objectid equal to fileid for all rows
$this->dbc->executeQuery('UPDATE *PREFIX*memories SET objectid = CAST(fileid AS CHAR)');
$this->dbc->executeQuery('UPDATE *PREFIX*memories SET objectid = CAST(fileid AS CHAR(64))');
}
}