From ff1e1857ed21b02b47ce079438a5650ebd6d444b Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Sun, 9 Nov 2025 14:36:14 +0100 Subject: [PATCH] feat: migrate preview_generation.id column to bigint Signed-off-by: Richard Steinmetz --- appinfo/info.xml | 2 +- .../Version051200Date20251109132659.php | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/Version051200Date20251109132659.php diff --git a/appinfo/info.xml b/appinfo/info.xml index f2cd663..9c3f9ce 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -15,7 +15,7 @@ The first time you install this app, before using a cron job, you properly want **Important**: To enable pre-generation of previews you must add **php /var/www/nextcloud/occ preview:pre-generate** to a system cron job that runs at times of your choosing.]]> - 5.12.0-dev.1 + 5.12.0-dev.2 agpl Richard Steinmetz PreviewGenerator diff --git a/lib/Migration/Version051200Date20251109132659.php b/lib/Migration/Version051200Date20251109132659.php new file mode 100644 index 0000000..4b97422 --- /dev/null +++ b/lib/Migration/Version051200Date20251109132659.php @@ -0,0 +1,38 @@ +getTable('preview_generation'); + $idColumn = $table->getColumn('id'); + $bigintType = Type::getType(Types::BIGINT); + if ($idColumn->getType() !== $bigintType) { + $idColumn->setType($bigintType); + } + + return $schema; + } +}