From d61916621d566f5dee91a759767f86062841d13c Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Tue, 1 Aug 2023 11:41:44 -0700 Subject: [PATCH] fix: return null if table exists Signed-off-by: Christopher Ng --- .../lib/Migration/Version10000Date20230725162149.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files_reminders/lib/Migration/Version10000Date20230725162149.php b/apps/files_reminders/lib/Migration/Version10000Date20230725162149.php index 0b7505d64e3..76999329d64 100644 --- a/apps/files_reminders/lib/Migration/Version10000Date20230725162149.php +++ b/apps/files_reminders/lib/Migration/Version10000Date20230725162149.php @@ -41,6 +41,10 @@ class Version10000Date20230725162149 extends SimpleMigrationStep { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); + if ($schema->hasTable(ReminderMapper::TABLE_NAME)) { + return null; + } + $table = $schema->createTable(ReminderMapper::TABLE_NAME); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true,