summaryrefslogtreecommitdiffstats
path: root/apps/files_reminders
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-01 11:41:44 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-08 16:29:12 -0700
commitcdaee2b2199731b71705cd6cd05a17ee874615f1 (patch)
treeea0d51cf2d635130ae7386924c49b981d6e19417 /apps/files_reminders
parent05436ac58e60aca770c7bb8359663ebfee31d777 (diff)
downloadnextcloud-server-cdaee2b2199731b71705cd6cd05a17ee874615f1.tar.gz
nextcloud-server-cdaee2b2199731b71705cd6cd05a17ee874615f1.zip
fix: return null if table exists
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit d61916621d566f5dee91a759767f86062841d13c)
Diffstat (limited to 'apps/files_reminders')
-rw-r--r--apps/files_reminders/lib/Migration/Version10000Date20230725162149.php4
1 files changed, 4 insertions, 0 deletions
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,