diff --git a/appinfo/info.xml b/appinfo/info.xml index 4500aa15..1949d0a6 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -3,7 +3,7 @@ cospend Cospend - 3.0.2 + 3.0.3 agpl Julien Veyssier Cospend diff --git a/lib/Migration/Version030003Date20241027164309.php b/lib/Migration/Version030003Date20241027164309.php new file mode 100644 index 00000000..df576eeb --- /dev/null +++ b/lib/Migration/Version030003Date20241027164309.php @@ -0,0 +1,49 @@ +hasTable('cospend_categories')) { + $table = $schema->getTable('cospend_categories'); + if ($table->hasColumn('encoded_icon')) { + $column = $table->getColumn('encoded_icon'); + $column->setLength(256); + $schemaChanged = true; + } + } + + if ($schema->hasTable('cospend_paymentmodes')) { + $table = $schema->getTable('cospend_paymentmodes'); + if ($table->hasColumn('encoded_icon')) { + $column = $table->getColumn('encoded_icon'); + $column->setLength(256); + $schemaChanged = true; + } + } + + return $schemaChanged ? $schema : null; + } +}