From c640101c32feb9e74bd07b0d2872c2090c4ffafd Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 31 Oct 2022 23:21:01 -0700 Subject: [PATCH] Specify char length in migration (postgres) --- lib/Migration/Version400503Date20221101033144.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Migration/Version400503Date20221101033144.php b/lib/Migration/Version400503Date20221101033144.php index dc20d4a5..33a412da 100644 --- a/lib/Migration/Version400503Date20221101033144.php +++ b/lib/Migration/Version400503Date20221101033144.php @@ -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))'); } }